run goimports

This commit is contained in:
Matthew Hooker
2018-01-22 17:21:10 -08:00
parent 5ef0c2280f
commit ebe995c0ff
169 changed files with 350 additions and 181 deletions
+3 -2
View File
@@ -3,10 +3,11 @@ package ecs
import (
"fmt"
"github.com/denverdino/aliyungo/common"
"github.com/hashicorp/packer/template/interpolate"
"regexp"
"strings"
"github.com/denverdino/aliyungo/common"
"github.com/hashicorp/packer/template/interpolate"
)
type AlicloudDiskDevice struct {
+2 -1
View File
@@ -3,11 +3,12 @@ package ecs
import (
"fmt"
"time"
"github.com/denverdino/aliyungo/common"
"github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"time"
)
type stepAttachKeyPar struct {
+2 -1
View File
@@ -1,8 +1,9 @@
package chroot
import (
"github.com/hashicorp/packer/packer"
"testing"
"github.com/hashicorp/packer/packer"
)
func TestCommunicator_ImplementsCommunicator(t *testing.T) {
+3 -2
View File
@@ -3,10 +3,11 @@ package chroot
import (
"bytes"
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"log"
"path/filepath"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
// StepCopyFiles copies some files from the host into the chroot environment.
+2 -1
View File
@@ -2,9 +2,10 @@ package chroot
import (
"fmt"
"log"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"log"
)
// StepEarlyCleanup performs some of the cleanup steps early in order to
+2 -1
View File
@@ -2,9 +2,10 @@ package chroot
import (
"fmt"
"log"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"log"
)
// StepEarlyUnflock unlocks the flock.
+3 -2
View File
@@ -2,11 +2,12 @@ package chroot
import (
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"log"
"os"
"path/filepath"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
// StepFlock provisions the instance within a chroot.
+3 -2
View File
@@ -3,11 +3,12 @@ package chroot
import (
"bytes"
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"os"
"os/exec"
"syscall"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
// StepMountExtra mounts the attached device.
@@ -2,6 +2,7 @@ package ebssurrogate
import (
"errors"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/hashicorp/packer/template/interpolate"
+2 -1
View File
@@ -1,10 +1,11 @@
package instance
import (
"github.com/hashicorp/packer/packer"
"io/ioutil"
"os"
"testing"
"github.com/hashicorp/packer/packer"
)
func testConfig() map[string]interface{} {
@@ -2,9 +2,10 @@ package instance
import (
"fmt"
"os"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"os"
)
type StepUploadX509Cert struct{}
+2 -1
View File
@@ -1,8 +1,9 @@
package arm
import (
"github.com/Azure/go-autorest/autorest/azure"
"testing"
"github.com/Azure/go-autorest/autorest/azure"
)
// Behavior is the most important thing to assert for ServicePrincipalToken, but
@@ -1,10 +1,11 @@
package arm
import (
"github.com/approvals/go-approval-tests"
"github.com/hashicorp/packer/common/json"
"strings"
"testing"
"github.com/approvals/go-approval-tests"
"github.com/hashicorp/packer/common/json"
)
const AzureErrorSimple = `{"error":{"code":"ResourceNotFound","message":"The Resource 'Microsoft.Compute/images/PackerUbuntuImage' under resource group 'packer-test00' was not found."}}`
+2 -1
View File
@@ -6,10 +6,11 @@ import (
"log"
"net/http"
"io"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/hashicorp/packer/builder/azure/common/logutil"
"io"
)
func chop(data []byte, maxlen int64) string {
+2 -1
View File
@@ -7,8 +7,9 @@ import (
"encoding/base64"
"encoding/pem"
"fmt"
"golang.org/x/crypto/ssh"
"time"
"golang.org/x/crypto/ssh"
)
const (
+2 -1
View File
@@ -1,8 +1,9 @@
package arm
import (
"golang.org/x/crypto/ssh"
"testing"
"golang.org/x/crypto/ssh"
)
func TestFart(t *testing.T) {
+2 -1
View File
@@ -10,8 +10,9 @@ package arm
import (
"fmt"
"github.com/Azure/azure-sdk-for-go/arm/compute"
"strings"
"github.com/Azure/azure-sdk-for-go/arm/compute"
)
type resourceResolver struct {
+2 -1
View File
@@ -2,10 +2,11 @@ package arm
import (
"fmt"
"testing"
"github.com/hashicorp/packer/builder/azure/common"
"github.com/hashicorp/packer/builder/azure/common/constants"
"github.com/mitchellh/multistep"
"testing"
)
func TestProcessStepResultShouldContinueForNonErrors(t *testing.T) {
+1
View File
@@ -7,6 +7,7 @@ import (
"github.com/Azure/azure-sdk-for-go/arm/resources/resources"
"fmt"
"github.com/hashicorp/packer/builder/azure/common/constants"
"github.com/hashicorp/packer/builder/azure/common/template"
)
+2 -1
View File
@@ -2,9 +2,10 @@ package common
import (
"fmt"
"github.com/mitchellh/reflectwalk"
"reflect"
"strings"
"github.com/mitchellh/reflectwalk"
)
type walker struct {
@@ -3,9 +3,10 @@ package lin
import (
"bytes"
"fmt"
"log"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"log"
)
type StepGeneralizeOS struct {
+2 -1
View File
@@ -1,8 +1,9 @@
package docker
import (
"github.com/hashicorp/packer/packer"
"testing"
"github.com/hashicorp/packer/packer"
)
func TestExportArtifact_impl(t *testing.T) {
+2 -1
View File
@@ -2,8 +2,9 @@ package docker
import (
"errors"
"github.com/hashicorp/packer/packer"
"testing"
"github.com/hashicorp/packer/packer"
)
func TestImportArtifact_impl(t *testing.T) {
+2 -1
View File
@@ -1,8 +1,9 @@
package docker
import (
"github.com/hashicorp/packer/packer"
"testing"
"github.com/hashicorp/packer/packer"
)
func TestBuilder_implBuilder(t *testing.T) {
+3 -2
View File
@@ -2,8 +2,6 @@ package docker
import (
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/iochan"
"io"
"log"
"os/exec"
@@ -11,6 +9,9 @@ import (
"strings"
"sync"
"syscall"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/iochan"
)
func runAndStream(cmd *exec.Cmd, ui packer.Ui) error {
+1
View File
@@ -2,6 +2,7 @@ package docker
import (
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
+2 -1
View File
@@ -2,8 +2,9 @@ package docker
import (
"errors"
"github.com/mitchellh/multistep"
"testing"
"github.com/mitchellh/multistep"
)
func testStepCommitState(t *testing.T) multistep.StateBag {
+2 -1
View File
@@ -2,9 +2,10 @@ package docker
import (
"fmt"
"github.com/mitchellh/multistep"
"os/exec"
"strings"
"github.com/mitchellh/multistep"
)
type StepConnectDocker struct{}
+2 -1
View File
@@ -3,10 +3,11 @@ package docker
import (
"bytes"
"errors"
"github.com/mitchellh/multistep"
"io/ioutil"
"os"
"testing"
"github.com/mitchellh/multistep"
)
func testStepExportState(t *testing.T) multistep.StateBag {
+2 -1
View File
@@ -2,8 +2,9 @@ package docker
import (
"errors"
"github.com/mitchellh/multistep"
"testing"
"github.com/mitchellh/multistep"
)
func TestStepPull_impl(t *testing.T) {
+1
View File
@@ -2,6 +2,7 @@ package docker
import (
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
+2 -1
View File
@@ -2,8 +2,9 @@ package docker
import (
"errors"
"github.com/mitchellh/multistep"
"testing"
"github.com/mitchellh/multistep"
)
func testStepRunState(t *testing.T) multistep.StateBag {
+3 -2
View File
@@ -2,10 +2,11 @@ package docker
import (
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"io/ioutil"
"os"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
// StepTempDir creates a temporary directory that we use in order to
+2 -1
View File
@@ -2,9 +2,10 @@ package docker
import (
"bytes"
"testing"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"testing"
)
func testState(t *testing.T) multistep.StateBag {
+2 -1
View File
@@ -1,8 +1,9 @@
package googlecompute
import (
"github.com/hashicorp/packer/packer"
"testing"
"github.com/hashicorp/packer/packer"
)
func TestArtifact_impl(t *testing.T) {
@@ -1,8 +1,9 @@
package googlecompute
import (
"github.com/mitchellh/multistep"
"testing"
"github.com/mitchellh/multistep"
)
func TestStepCheckExistingImage_impl(t *testing.T) {
@@ -2,9 +2,10 @@ package googlecompute
import (
"errors"
"github.com/mitchellh/multistep"
"testing"
"time"
"github.com/mitchellh/multistep"
)
func TestStepInstanceInfo_impl(t *testing.T) {
@@ -1,8 +1,9 @@
package googlecompute
import (
"github.com/mitchellh/multistep"
"testing"
"github.com/mitchellh/multistep"
)
func TestStepTeardownInstance_impl(t *testing.T) {
@@ -1,9 +1,10 @@
package googlecompute
import (
"testing"
"github.com/mitchellh/multistep"
"github.com/stretchr/testify/assert"
"testing"
)
func TestStepWaitStartupScript(t *testing.T) {
+2 -1
View File
@@ -2,8 +2,9 @@ package common
import (
"fmt"
"github.com/hashicorp/packer/template/interpolate"
"time"
"github.com/hashicorp/packer/template/interpolate"
)
type RunConfig struct {
@@ -2,6 +2,7 @@ package common
import (
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
@@ -2,6 +2,7 @@ package common
import (
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
@@ -2,6 +2,7 @@ package common
import (
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
+3 -2
View File
@@ -2,11 +2,12 @@ package common
import (
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"log"
"path/filepath"
"strings"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
type StepMountDvdDrive struct {
@@ -2,13 +2,14 @@ package common
import (
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"io"
"io/ioutil"
"log"
"os"
"path/filepath"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
const (
@@ -2,9 +2,10 @@ package common
import (
"fmt"
"log"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"log"
)
type StepMountGuestAdditions struct {
@@ -2,9 +2,10 @@ package common
import (
"fmt"
"log"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"log"
)
type StepMountSecondaryDvdImages struct {
+2 -1
View File
@@ -2,9 +2,10 @@ package common
import (
"fmt"
"time"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"time"
)
type StepRebootVm struct {
+2 -1
View File
@@ -2,9 +2,10 @@ package common
import (
"fmt"
"time"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"time"
)
type StepRun struct {
+2 -1
View File
@@ -2,9 +2,10 @@ package common
import (
"fmt"
"time"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"time"
)
type StepSleep struct {
@@ -2,6 +2,7 @@ package common
import (
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
@@ -2,6 +2,7 @@ package common
import (
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
@@ -2,6 +2,7 @@ package common
import (
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
@@ -2,6 +2,7 @@ package common
import (
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
@@ -2,9 +2,10 @@ package common
import (
"fmt"
"time"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"time"
)
const (
+2 -1
View File
@@ -6,10 +6,11 @@ import (
"strconv"
"testing"
"os"
hypervcommon "github.com/hashicorp/packer/builder/hyperv/common"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"os"
)
func testConfig() map[string]interface{} {
+3 -2
View File
@@ -5,11 +5,12 @@ import (
"reflect"
"testing"
"io/ioutil"
"os"
hypervcommon "github.com/hashicorp/packer/builder/hyperv/common"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"io/ioutil"
"os"
)
func testConfig() map[string]interface{} {
+4 -3
View File
@@ -1,13 +1,14 @@
package lxc
import (
"log"
"os"
"path/filepath"
"github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/template/interpolate"
"github.com/mitchellh/multistep"
"log"
"os"
"path/filepath"
)
// The unique ID for this builder
+2 -1
View File
@@ -2,7 +2,6 @@ package lxc
import (
"fmt"
"github.com/hashicorp/packer/packer"
"io"
"io/ioutil"
"log"
@@ -11,6 +10,8 @@ import (
"path/filepath"
"strings"
"syscall"
"github.com/hashicorp/packer/packer"
)
type LxcAttachCommunicator struct {
+2 -1
View File
@@ -1,8 +1,9 @@
package lxc
import (
"github.com/hashicorp/packer/packer"
"testing"
"github.com/hashicorp/packer/packer"
)
func TestCommunicator_ImplementsCommunicator(t *testing.T) {
+3 -2
View File
@@ -2,13 +2,14 @@ package lxc
import (
"fmt"
"os"
"time"
"github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/helper/config"
"github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/template/interpolate"
"github.com/mitchellh/mapstructure"
"os"
"time"
)
type Config struct {
+3 -2
View File
@@ -3,14 +3,15 @@ package lxc
import (
"bytes"
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"io"
"log"
"os"
"os/exec"
"path/filepath"
"strings"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
type stepExport struct{}
+3 -2
View File
@@ -3,12 +3,13 @@ package lxc
import (
"bytes"
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"log"
"os/exec"
"path/filepath"
"strings"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
type stepLxcCreate struct{}
+3 -2
View File
@@ -1,11 +1,12 @@
package lxc
import (
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"log"
"os"
"time"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
type stepPrepareOutputDir struct{}
+2 -1
View File
@@ -1,9 +1,10 @@
package lxc
import (
"log"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"log"
)
// StepProvision provisions the instance within a chroot.
+3 -2
View File
@@ -3,11 +3,12 @@ package lxc
import (
"errors"
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"log"
"strings"
"time"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
type StepWaitInit struct {
+2 -1
View File
@@ -1,11 +1,12 @@
package lxd
import (
"log"
"github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/template/interpolate"
"github.com/mitchellh/multistep"
"log"
)
// The unique ID for this builder
+2 -1
View File
@@ -2,13 +2,14 @@ package lxd
import (
"fmt"
"github.com/hashicorp/packer/packer"
"io"
"log"
"os"
"os/exec"
"path/filepath"
"syscall"
"github.com/hashicorp/packer/packer"
)
type Communicator struct {
+2 -1
View File
@@ -1,8 +1,9 @@
package lxd
import (
"github.com/hashicorp/packer/packer"
"testing"
"github.com/hashicorp/packer/packer"
)
func TestCommunicator_ImplementsCommunicator(t *testing.T) {
+2 -1
View File
@@ -2,12 +2,13 @@ package lxd
import (
"fmt"
"time"
"github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/helper/config"
"github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/template/interpolate"
"github.com/mitchellh/mapstructure"
"time"
)
type Config struct {
+2 -1
View File
@@ -2,9 +2,10 @@ package lxd
import (
"fmt"
"time"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"time"
)
type stepLxdLaunch struct{}
+2 -1
View File
@@ -1,9 +1,10 @@
package lxd
import (
"log"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"log"
)
// StepProvision provisions the container
+2 -1
View File
@@ -2,9 +2,10 @@ package lxd
import (
"fmt"
"regexp"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"regexp"
)
type stepPublish struct{}
+2 -1
View File
@@ -1,8 +1,9 @@
package null
import (
"github.com/hashicorp/packer/packer"
"testing"
"github.com/hashicorp/packer/packer"
)
func TestNullArtifact(t *testing.T) {
+2 -1
View File
@@ -1,8 +1,9 @@
package null
import (
"github.com/hashicorp/packer/packer"
"testing"
"github.com/hashicorp/packer/packer"
)
func TestBuilder_implBuilder(t *testing.T) {
+2 -1
View File
@@ -3,11 +3,12 @@ package oneandone
import (
"errors"
"fmt"
"log"
"github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/helper/communicator"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"log"
)
const BuilderId = "packer.oneandone"
+2 -1
View File
@@ -2,8 +2,9 @@ package oneandone
import (
"fmt"
"github.com/hashicorp/packer/packer"
"testing"
"github.com/hashicorp/packer/packer"
)
func testConfig() map[string]interface{} {
+3 -2
View File
@@ -2,6 +2,9 @@ package oneandone
import (
"errors"
"os"
"strings"
"github.com/1and1/oneandone-cloudserver-sdk-go"
"github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/helper/communicator"
@@ -9,8 +12,6 @@ import (
"github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/template/interpolate"
"github.com/mitchellh/mapstructure"
"os"
"strings"
)
type Config struct {
+1
View File
@@ -2,6 +2,7 @@ package oneandone
import (
"fmt"
"github.com/hashicorp/packer/communicator/ssh"
"github.com/mitchellh/multistep"
gossh "golang.org/x/crypto/ssh"
+3 -2
View File
@@ -2,11 +2,12 @@ package oneandone
import (
"fmt"
"strings"
"time"
"github.com/1and1/oneandone-cloudserver-sdk-go"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"strings"
"time"
)
type stepCreateServer struct{}
+2 -1
View File
@@ -4,10 +4,11 @@ import (
"crypto/x509"
"encoding/pem"
"fmt"
"io/ioutil"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"golang.org/x/crypto/ssh"
"io/ioutil"
)
type StepCreateSSHKey struct {
+2 -1
View File
@@ -1,8 +1,9 @@
package openstack
import (
"github.com/hashicorp/packer/packer"
"testing"
"github.com/hashicorp/packer/packer"
)
func TestArtifact_Impl(t *testing.T) {
+2 -1
View File
@@ -1,8 +1,9 @@
package openstack
import (
"github.com/hashicorp/packer/packer"
"testing"
"github.com/hashicorp/packer/packer"
)
func testConfig() map[string]interface{} {
+1
View File
@@ -2,6 +2,7 @@ package oci
import (
"fmt"
client "github.com/hashicorp/packer/builder/oracle/oci/client"
)
+2 -1
View File
@@ -3,9 +3,10 @@ package oci
import (
"bytes"
"encoding/json"
"github.com/google/go-querystring/query"
"net/http"
"net/url"
"github.com/google/go-querystring/query"
)
const (
+2 -1
View File
@@ -2,11 +2,12 @@ package profitbricks
import (
"fmt"
"log"
"github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/helper/communicator"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"log"
)
const BuilderId = "packer.profitbricks"
+2 -1
View File
@@ -2,8 +2,9 @@ package profitbricks
import (
"fmt"
"github.com/hashicorp/packer/packer"
"testing"
"github.com/hashicorp/packer/packer"
)
func testConfig() map[string]interface{} {
+2 -1
View File
@@ -2,13 +2,14 @@ package profitbricks
import (
"errors"
"os"
"github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/helper/communicator"
"github.com/hashicorp/packer/helper/config"
"github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/template/interpolate"
"github.com/mitchellh/mapstructure"
"os"
)
type Config struct {
+1
View File
@@ -2,6 +2,7 @@ package profitbricks
import (
"fmt"
"github.com/hashicorp/packer/communicator/ssh"
"github.com/mitchellh/multistep"
gossh "golang.org/x/crypto/ssh"
+2 -1
View File
@@ -4,10 +4,11 @@ import (
"crypto/x509"
"encoding/pem"
"fmt"
"io/ioutil"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"golang.org/x/crypto/ssh"
"io/ioutil"
)
type StepCreateSSHKey struct {
+2 -1
View File
@@ -2,9 +2,10 @@ package qemu
import (
"fmt"
"time"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"time"
)
// stepBootWait waits the configured time period.
+3 -2
View File
@@ -1,11 +1,12 @@
package qemu
import (
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"log"
"os"
"time"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
type stepPrepareOutputDir struct{}
+2 -1
View File
@@ -10,12 +10,13 @@ import (
"unicode"
"unicode/utf8"
"os"
"github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/template/interpolate"
"github.com/mitchellh/go-vnc"
"github.com/mitchellh/multistep"
"os"
)
const KeyLeftShift uint32 = 0xFFE1
+2 -1
View File
@@ -2,9 +2,10 @@ package triton
import (
"bytes"
"testing"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"testing"
)
func testState(t *testing.T) multistep.StateBag {
@@ -1,10 +1,11 @@
package common
import (
"github.com/hashicorp/packer/common"
"io/ioutil"
"os"
"testing"
"github.com/hashicorp/packer/common"
)
func TestOutputConfigPrepare(t *testing.T) {
@@ -2,13 +2,14 @@ package common
import (
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"io"
"io/ioutil"
"log"
"os"
"path/filepath"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
// This step attaches the ISO to the virtual machine.
@@ -1,10 +1,11 @@
package common
import (
"github.com/mitchellh/multistep"
"io/ioutil"
"os"
"testing"
"github.com/mitchellh/multistep"
)
func TestStepAttachFloppy_impl(t *testing.T) {
@@ -2,9 +2,10 @@ package common
import (
"fmt"
"log"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"log"
)
// This step attaches the VirtualBox guest additions as a inserted CD onto
+3 -2
View File
@@ -2,12 +2,13 @@ package common
import (
"fmt"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"log"
"path/filepath"
"strings"
"time"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
// This step cleans up forwarded ports and exports the VM to an OVF.
@@ -1,8 +1,9 @@
package common
import (
"github.com/mitchellh/multistep"
"testing"
"github.com/mitchellh/multistep"
)
func TestStepExport_impl(t *testing.T) {

Some files were not shown because too many files have changed in this diff Show More