diff --git a/go.mod b/go.mod index 3bea19918..8286aa975 100644 --- a/go.mod +++ b/go.mod @@ -49,7 +49,7 @@ require ( github.com/hashicorp/go-uuid v1.0.2 github.com/hashicorp/go-version v1.2.0 github.com/hashicorp/hcl/v2 v2.8.0 - github.com/hashicorp/packer-plugin-sdk v0.0.5 + github.com/hashicorp/packer-plugin-sdk v0.0.6 github.com/hashicorp/vault/api v1.0.4 github.com/hetznercloud/hcloud-go v1.15.1 github.com/hyperonecom/h1-client-go v0.0.0-20191203060043-b46280e4c4a4 diff --git a/go.sum b/go.sum index 9507c1bb9..733b94c15 100644 --- a/go.sum +++ b/go.sum @@ -423,6 +423,8 @@ github.com/hashicorp/memberlist v0.2.2/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOn github.com/hashicorp/packer v1.6.6/go.mod h1:meJucaEeJro8UP1jw+KaOCpaiC4VE+itPLXY8lbIU2A= github.com/hashicorp/packer-plugin-sdk v0.0.5 h1:ZaWvFY9b+YiDMmEBe5Z2UrEmmvmK7WsiZ3j6RDYVn+o= github.com/hashicorp/packer-plugin-sdk v0.0.5/go.mod h1:xtyp/NeMzMrsESFAsUh1uFsLKgYI0kWbcMliDqvx3AM= +github.com/hashicorp/packer-plugin-sdk v0.0.6 h1:BN2G4APXSMvDURFdnk+6DspwsU83pZeMsbEur7NmGsA= +github.com/hashicorp/packer-plugin-sdk v0.0.6/go.mod h1:Nvh28f+Jmpp2rcaN79bULTouNkGNDRfHckhHKTAXtyU= github.com/hashicorp/serf v0.8.2 h1:YZ7UKsJv+hKjqGVUUbtE3HNj79Eln2oQ75tniF6iPt0= github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= github.com/hashicorp/serf v0.9.2 h1:yJoyfZXo4Pk2p/M/viW+YLibBFiIbKoP79gu7kDAFP0= diff --git a/packer/plugin/discover_test.go b/packer/plugin/discover_test.go index 35cf104a7..787ddd77b 100644 --- a/packer/plugin/discover_test.go +++ b/packer/plugin/discover_test.go @@ -165,22 +165,17 @@ func TestHelperPlugins(t *testing.T) { allMocks := []map[string]pluginsdk.Set{mockPlugins, defaultNameMock, doubleDefaultMock, badDefaultNameMock} for _, mock := range allMocks { - t.Log("Megan 1") plugin, found := mock[pluginName] if found { - t.Log("Megan 2") err := plugin.RunCommand(args...) if err != nil { fmt.Fprintf(os.Stderr, "%v\n", err) - t.Log("Megan 3") os.Exit(1) } - t.Log("Megan 4") os.Exit(0) } } - t.Log("Megan 5") fmt.Fprintf(os.Stderr, "No %q plugin found\n", pluginName) os.Exit(2) } @@ -313,17 +308,12 @@ func Test_multiplugin_describe(t *testing.T) { createMockPlugins(t, mockPlugins) pluginDir := os.Getenv("PACKER_PLUGIN_PATH") defer os.RemoveAll(pluginDir) - t.Log("Megan 1") c := Config{} - t.Log("Megan 2") err := c.Discover() - t.Log("Megan 3") if err != nil { - t.Log("Megan 5") t.Fatalf("error discovering plugins; %s", err.Error()) } - t.Log("Megan 4") for mockPluginName, plugin := range mockPlugins { for mockBuilderName := range plugin.Builders {