Skip to content

Commit

Permalink
move multistep imports to helper.
Browse files Browse the repository at this point in the history
gomvpkg -from "github.com/mitchellh/multistep" -to "github.com/hashicorp/packer/helper/multistep"
  • Loading branch information
mwhooker committed Jan 25, 2018
1 parent 89d4325 commit 366dc3d
Show file tree
Hide file tree
Showing 382 changed files with 447 additions and 412 deletions.
2 changes: 1 addition & 1 deletion builder/alicloud/ecs/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/helper/communicator"
"github.com/hashicorp/packer/helper/config"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/template/interpolate"
"github.com/mitchellh/multistep"
)

// The unique ID for this builder
Expand Down
2 changes: 1 addition & 1 deletion builder/alicloud/ecs/packer_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package ecs
import (
"fmt"

"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

func message(state multistep.StateBag, module string) {
Expand Down
2 changes: 1 addition & 1 deletion builder/alicloud/ecs/ssh_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"time"

packerssh "github.com/hashicorp/packer/communicator/ssh"
"github.com/mitchellh/multistep"
"github.com/hashicorp/packer/helper/multistep"
"golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh/agent"
)
Expand Down
3 changes: 2 additions & 1 deletion builder/alicloud/ecs/step_attach_keypair.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import (

"github.com/denverdino/aliyungo/common"
"github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"time"
)

type stepAttachKeyPar struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/alicloud/ecs/step_check_source_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/denverdino/aliyungo/common"
"github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

type stepCheckAlicloudSourceImage struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/alicloud/ecs/step_config_eip.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/denverdino/aliyungo/common"
"github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

type setpConfigAlicloudEIP struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/alicloud/ecs/step_config_key_pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/denverdino/aliyungo/common"
"github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

type StepConfigAlicloudKeyPair struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/alicloud/ecs/step_config_public_ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"

"github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

type stepConfigAlicloudPublicIP struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/alicloud/ecs/step_config_security_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/denverdino/aliyungo/common"
"github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

type stepConfigAlicloudSecurityGroup struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/alicloud/ecs/step_config_vpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/denverdino/aliyungo/common"
"github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

type stepConfigAlicloudVPC struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/alicloud/ecs/step_config_vswitch.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/denverdino/aliyungo/common"
"github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

type stepConfigAlicloudVSwitch struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/alicloud/ecs/step_create_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/denverdino/aliyungo/common"
"github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

type stepCreateAlicloudImage struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/alicloud/ecs/step_create_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/denverdino/aliyungo/common"
"github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

type stepCreateAlicloudInstance struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/alicloud/ecs/step_delete_images_snapshots.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

"github.com/denverdino/aliyungo/common"
"github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

type stepDeleteAlicloudImageSnapshots struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/alicloud/ecs/step_mount_disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"

"github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

type stepMountAlicloudDisk struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/alicloud/ecs/step_pre_validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/denverdino/aliyungo/common"
"github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

type stepPreValidate struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/alicloud/ecs/step_region_copy_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/denverdino/aliyungo/common"
"github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

type setpRegionCopyAlicloudImage struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/alicloud/ecs/step_run_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"

"github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

type stepRunAlicloudInstance struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/alicloud/ecs/step_share_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/denverdino/aliyungo/common"
"github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

type setpShareAlicloudImage struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/alicloud/ecs/step_stop_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"

"github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

type stepStopAlicloudInstance struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
awscommon "github.com/hashicorp/packer/builder/amazon/common"
"github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/helper/config"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/template/interpolate"
"github.com/mitchellh/multistep"
)

// The unique ID for this builder
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/cleanup.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package chroot

import (
"github.com/mitchellh/multistep"
"github.com/hashicorp/packer/helper/multistep"
)

// Cleanup is an interface that some steps implement for early cleanup.
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/step_attach_volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/aws/aws-sdk-go/service/ec2"
awscommon "github.com/hashicorp/packer/builder/amazon/common"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

// StepAttachVolume attaches the previously created volume to an
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/step_check_root_device.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"

"github.com/aws/aws-sdk-go/service/ec2"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

// StepCheckRootDevice makes sure the root device on the AMI is EBS-backed.
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/step_chroot_provision.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package chroot
import (
"log"

"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

// StepChrootProvision provisions the instance within a chroot.
Expand Down
2 changes: 2 additions & 0 deletions builder/amazon/chroot/step_copy_files.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package chroot
import (
"bytes"
"fmt"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"log"
"path/filepath"

Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/step_create_volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
awscommon "github.com/hashicorp/packer/builder/amazon/common"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

// StepCreateVolume creates a new volume from the snapshot of the root
Expand Down
5 changes: 2 additions & 3 deletions builder/amazon/chroot/step_early_cleanup.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ package chroot

import (
"fmt"
"log"

"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"log"
)

// StepEarlyCleanup performs some of the cleanup steps early in order to
Expand Down
5 changes: 2 additions & 3 deletions builder/amazon/chroot/step_early_unflock.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ package chroot

import (
"fmt"
"log"

"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"log"
)

// StepEarlyUnflock unlocks the flock.
Expand Down
2 changes: 2 additions & 0 deletions builder/amazon/chroot/step_flock.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package chroot

import (
"fmt"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"log"
"os"
"path/filepath"
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/step_instance_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/aws/aws-sdk-go/aws/ec2metadata"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

// StepInstanceInfo verifies that this builder is running on an EC2 instance.
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/step_mount_device.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"strings"

"github.com/aws/aws-sdk-go/service/ec2"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/template/interpolate"
"github.com/mitchellh/multistep"
)

type mountPathData struct {
Expand Down
2 changes: 2 additions & 0 deletions builder/amazon/chroot/step_mount_extra.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package chroot
import (
"bytes"
"fmt"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"os"
"os/exec"
"syscall"
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/step_post_mount_commands.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package chroot

import (
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

type postMountCommandsData struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/step_pre_mount_commands.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package chroot

import (
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

type preMountCommandsData struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/step_prepare_device.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"log"
"os"

"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

// StepPrepareDevice finds an available device and sets it.
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/step_register_ami.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
awscommon "github.com/hashicorp/packer/builder/amazon/common"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

// StepRegisterAMI creates the AMI.
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/chroot/step_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/aws/aws-sdk-go/service/ec2"
awscommon "github.com/hashicorp/packer/builder/amazon/common"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)

// StepSnapshot creates a snapshot of the created volume.
Expand Down
2 changes: 1 addition & 1 deletion builder/amazon/common/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/aws/aws-sdk-go/service/ec2"
packerssh "github.com/hashicorp/packer/communicator/ssh"
"github.com/mitchellh/multistep"
"github.com/hashicorp/packer/helper/multistep"
"golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh/agent"
)
Expand Down
Loading

0 comments on commit 366dc3d

Please sign in to comment.