Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
`find . -type f -name '*.go' -not -path "./vendor/*" -exec goimports -w {} \;`
  • Loading branch information
mwhooker committed Jan 25, 2018
1 parent a831d52 commit 7a189a8
Show file tree
Hide file tree
Showing 265 changed files with 340 additions and 141 deletions.
2 changes: 1 addition & 1 deletion builder/alicloud/ecs/step_attach_keypair.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ecs

import (
"context"
"fmt"

"time"
Expand All @@ -9,7 +10,6 @@ import (
"github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"time"
)

type stepAttachKeyPar struct {
Expand Down
1 change: 1 addition & 0 deletions builder/alicloud/ecs/step_check_source_image.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ecs

import (
"context"
"fmt"

"github.com/denverdino/aliyungo/common"
Expand Down
1 change: 1 addition & 0 deletions builder/alicloud/ecs/step_config_eip.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ecs

import (
"context"
"fmt"

"github.com/denverdino/aliyungo/common"
Expand Down
1 change: 1 addition & 0 deletions builder/alicloud/ecs/step_config_key_pair.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ecs

import (
"context"
"fmt"
"io/ioutil"
"os"
Expand Down
1 change: 1 addition & 0 deletions builder/alicloud/ecs/step_config_public_ip.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ecs

import (
"context"
"fmt"

"github.com/denverdino/aliyungo/ecs"
Expand Down
1 change: 1 addition & 0 deletions builder/alicloud/ecs/step_config_security_group.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ecs

import (
"context"
"errors"
"fmt"
"time"
Expand Down
1 change: 1 addition & 0 deletions builder/alicloud/ecs/step_config_vpc.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ecs

import (
"context"
"errors"
"fmt"
"time"
Expand Down
1 change: 1 addition & 0 deletions builder/alicloud/ecs/step_config_vswitch.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ecs

import (
"context"
"errors"
"fmt"
"time"
Expand Down
1 change: 1 addition & 0 deletions builder/alicloud/ecs/step_create_image.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ecs

import (
"context"
"fmt"

"github.com/denverdino/aliyungo/common"
Expand Down
1 change: 1 addition & 0 deletions builder/alicloud/ecs/step_create_instance.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ecs

import (
"context"
"fmt"
"io/ioutil"
"log"
Expand Down
1 change: 1 addition & 0 deletions builder/alicloud/ecs/step_delete_images_snapshots.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ecs

import (
"context"
"fmt"
"log"

Expand Down
1 change: 1 addition & 0 deletions builder/alicloud/ecs/step_mount_disk.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ecs

import (
"context"
"fmt"

"github.com/denverdino/aliyungo/ecs"
Expand Down
1 change: 1 addition & 0 deletions builder/alicloud/ecs/step_pre_validate.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ecs

import (
"context"
"fmt"

"github.com/denverdino/aliyungo/common"
Expand Down
1 change: 1 addition & 0 deletions builder/alicloud/ecs/step_region_copy_image.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ecs

import (
"context"
"fmt"

"github.com/denverdino/aliyungo/common"
Expand Down
1 change: 1 addition & 0 deletions builder/alicloud/ecs/step_run_instance.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ecs

import (
"context"
"fmt"

"github.com/denverdino/aliyungo/ecs"
Expand Down
1 change: 1 addition & 0 deletions builder/alicloud/ecs/step_share_image.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ecs

import (
"context"
"fmt"

"github.com/denverdino/aliyungo/common"
Expand Down
1 change: 1 addition & 0 deletions builder/alicloud/ecs/step_stop_instance.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ecs

import (
"context"
"fmt"

"github.com/denverdino/aliyungo/ecs"
Expand Down
1 change: 1 addition & 0 deletions builder/amazon/chroot/step_attach_volume.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package chroot

import (
"context"
"errors"
"fmt"
"strings"
Expand Down
1 change: 1 addition & 0 deletions builder/amazon/chroot/step_check_root_device.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package chroot

import (
"context"
"fmt"

"github.com/aws/aws-sdk-go/service/ec2"
Expand Down
1 change: 1 addition & 0 deletions builder/amazon/chroot/step_chroot_provision.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package chroot

import (
"context"
"log"

"github.com/hashicorp/packer/helper/multistep"
Expand Down
5 changes: 2 additions & 3 deletions builder/amazon/chroot/step_copy_files.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ package chroot

import (
"bytes"
"context"
"fmt"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"log"
"path/filepath"

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

// StepCopyFiles copies some files from the host into the chroot environment.
Expand Down
1 change: 1 addition & 0 deletions builder/amazon/chroot/step_create_volume.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package chroot

import (
"context"
"fmt"
"log"

Expand Down
4 changes: 3 additions & 1 deletion builder/amazon/chroot/step_early_cleanup.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package chroot

import (
"context"
"fmt"
"log"

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

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

import (
"context"
"fmt"
"log"

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

// StepEarlyUnflock unlocks the flock.
Expand Down
5 changes: 2 additions & 3 deletions builder/amazon/chroot/step_flock.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
package chroot

import (
"context"
"fmt"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"log"
"os"
"path/filepath"

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

// StepFlock provisions the instance within a chroot.
Expand Down
1 change: 1 addition & 0 deletions builder/amazon/chroot/step_instance_info.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package chroot

import (
"context"
"fmt"
"log"

Expand Down
1 change: 1 addition & 0 deletions builder/amazon/chroot/step_mount_device.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package chroot

import (
"bytes"
"context"
"fmt"
"log"
"os"
Expand Down
5 changes: 2 additions & 3 deletions builder/amazon/chroot/step_mount_extra.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ package chroot

import (
"bytes"
"context"
"fmt"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"os"
"os/exec"
"syscall"

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

// StepMountExtra mounts the attached device.
Expand Down
2 changes: 2 additions & 0 deletions builder/amazon/chroot/step_post_mount_commands.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package chroot

import (
"context"

"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
)
Expand Down
2 changes: 2 additions & 0 deletions builder/amazon/chroot/step_pre_mount_commands.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package chroot

import (
"context"

"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
)
Expand Down
1 change: 1 addition & 0 deletions builder/amazon/chroot/step_prepare_device.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package chroot

import (
"context"
"fmt"
"log"
"os"
Expand Down
1 change: 1 addition & 0 deletions builder/amazon/chroot/step_register_ami.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package chroot

import (
"context"
"fmt"

"github.com/aws/aws-sdk-go/aws"
Expand Down
1 change: 1 addition & 0 deletions builder/amazon/chroot/step_snapshot.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package chroot

import (
"context"
"errors"
"fmt"
"time"
Expand Down
1 change: 1 addition & 0 deletions builder/amazon/common/step_ami_region_copy.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package common

import (
"context"
"fmt"
"sync"

Expand Down
1 change: 1 addition & 0 deletions builder/amazon/common/step_create_tags.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package common

import (
"context"
"fmt"

"github.com/aws/aws-sdk-go/aws"
Expand Down
1 change: 1 addition & 0 deletions builder/amazon/common/step_deregister_ami.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package common

import (
"context"
"fmt"

"github.com/aws/aws-sdk-go/aws"
Expand Down
1 change: 1 addition & 0 deletions builder/amazon/common/step_encrypted_ami.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package common

import (
"context"
"fmt"
"log"

Expand Down
1 change: 1 addition & 0 deletions builder/amazon/common/step_get_password.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package common

import (
"context"
"crypto/rsa"
"crypto/x509"
"encoding/base64"
Expand Down
1 change: 1 addition & 0 deletions builder/amazon/common/step_key_pair.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package common

import (
"context"
"fmt"
"io/ioutil"
"os"
Expand Down
1 change: 1 addition & 0 deletions builder/amazon/common/step_modify_ami_attributes.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package common

import (
"context"
"fmt"

"github.com/aws/aws-sdk-go/aws"
Expand Down
1 change: 1 addition & 0 deletions builder/amazon/common/step_modify_ebs_instance.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package common

import (
"context"
"fmt"

"github.com/aws/aws-sdk-go/aws"
Expand Down
1 change: 1 addition & 0 deletions builder/amazon/common/step_pre_validate.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package common

import (
"context"
"fmt"

"github.com/aws/aws-sdk-go/aws"
Expand Down
1 change: 1 addition & 0 deletions builder/amazon/common/step_run_spot_instance.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package common

import (
"context"
"encoding/base64"
"fmt"
"io/ioutil"
Expand Down
Loading

0 comments on commit 7a189a8

Please sign in to comment.