https://pulumi.com logo
#golang
Title
# golang
b

bright-jordan-62321

03/26/2020, 12:57 PM
Copy code
pulumi preview --verbose 9 --logtostderr
Enter your passphrase to unlock config/secrets
    (set PULUMI_CONFIG_PASSPHRASE to remember):
Previewing update (dev):
I0326 05:41:04.638422   96424 plugins.go:76] gatherPluginsFromProgram(): gathering plugins from language host
I0326 05:41:04.638643   96424 plugins.go:427] GetPluginPath(language, go, <nil>): found on $PATH /usr/local/bin/pulumi-language-go
I0326 05:41:04.638727   96424 plugin.go:86] Launching plugin 'go' from '/usr/local/bin/pulumi-language-go' with args: 127.0.0.1:61047
I0326 05:41:04.666738   96424 langruntime_plugin.go:170] langhost[go].GetPluginInfo() executing
I0326 05:41:04.667334   96424 langruntime_plugin.go:83] langhost[go].GetRequiredPlugins(proj=pulumi-spike-2,pwd=/Users/zyliu/go/src/pulumi-spike,program=.) executing
I0326 05:41:04.798810   96424 langruntime_plugin.go:92] langhost[go].GetRequiredPlugins(proj=pulumi-spike-2,pwd=/Users/zyliu/go/src/pulumi-spike,program=.) failed: err=failed to execute program cmd: exit status 1

I0326 05:41:04.801887   96424 sink.go:154] defaultSink::Error(error: failed to discover plugin requirements: failed to execute program cmd: exit status 1
<http://github.com/pulumi/pulumi/pkg/resource/plugin.(*defaultHost).GetRequiredPlugins|github.com/pulumi/pulumi/pkg/resource/plugin.(*defaultHost).GetRequiredPlugins>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/resource/plugin/host.go:397
<http://github.com/pulumi/pulumi/pkg/engine.gatherPluginsFromProgram|github.com/pulumi/pulumi/pkg/engine.gatherPluginsFromProgram>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/plugins.go:78
<http://github.com/pulumi/pulumi/pkg/engine.installPlugins|github.com/pulumi/pulumi/pkg/engine.installPlugins>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/update.go:209
<http://github.com/pulumi/pulumi/pkg/engine.newUpdateSource|github.com/pulumi/pulumi/pkg/engine.newUpdateSource>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/update.go:353
<http://github.com/pulumi/pulumi/pkg/engine.plan|github.com/pulumi/pulumi/pkg/engine.plan>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/plan.go:131
<http://github.com/pulumi/pulumi/pkg/engine.update|github.com/pulumi/pulumi/pkg/engine.update>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/update.go:398
<http://github.com/pulumi/pulumi/pkg/engine.Update|github.com/pulumi/pulumi/pkg/engine.Update>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/update.go:177
<http://github.com/pulumi/pulumi/pkg/backend/filestate.(*localBackend).apply|github.com/pulumi/pulumi/pkg/backend/filestate.(*localBackend).apply>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/backend/filestate/backend.go:507
<http://github.com/pulumi/pulumi/pkg/backend/filestate.(*localBackend).Preview|github.com/pulumi/pulumi/pkg/backend/filestate.(*localBackend).Preview>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/backend/filestate/backend.go:415
<http://github.com/pulumi/pulumi/pkg/backend.PreviewStack|github.com/pulumi/pulumi/pkg/backend.PreviewStack>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/backend/stack.go:77
<http://github.com/pulumi/pulumi/pkg/backend/filestate.(*localStack).Preview|github.com/pulumi/pulumi/pkg/backend/filestate.(*localStack).Preview>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/backend/filestate/stack.go:68
<http://github.com/pulumi/pulumi/cmd.newPreviewCmd.func1|github.com/pulumi/pulumi/cmd.newPreviewCmd.func1>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/cmd/preview.go:155
<http://github.com/pulumi/pulumi/pkg/util/cmdutil.RunResultFunc.func1|github.com/pulumi/pulumi/pkg/util/cmdutil.RunResultFunc.func1>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/util/cmdutil/exit.go:112
<http://github.com/spf13/cobra.(*Command).execute|github.com/spf13/cobra.(*Command).execute>
	/private/tmp/pulumi-20200319-67324-1vstl0e/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:766
<http://github.com/spf13/cobra.(*Command).ExecuteC|github.com/spf13/cobra.(*Command).ExecuteC>
	/private/tmp/pulumi-20200319-67324-1vstl0e/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:852
<http://github.com/spf13/cobra.(*Command).Execute|github.com/spf13/cobra.(*Command).Execute>
	/private/tmp/pulumi-20200319-67324-1vstl0e/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:800
main.main
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/main.go:49
runtime.main
	/usr/local/Cellar/go/1.14/libexec/src/runtime/proc.go:203
runtime.goexit
	/usr/local/Cellar/go/1.14/libexec/src/runtime/asm_amd64.s:1373
)
error: failed to discover plugin requirements: failed to execute program cmd: exit status 1
<http://github.com/pulumi/pulumi/pkg/resource/plugin.(*defaultHost).GetRequiredPlugins|github.com/pulumi/pulumi/pkg/resource/plugin.(*defaultHost).GetRequiredPlugins>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/resource/plugin/host.go:397
<http://github.com/pulumi/pulumi/pkg/engine.gatherPluginsFromProgram|github.com/pulumi/pulumi/pkg/engine.gatherPluginsFromProgram>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/plugins.go:78
<http://github.com/pulumi/pulumi/pkg/engine.installPlugins|github.com/pulumi/pulumi/pkg/engine.installPlugins>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/update.go:209
<http://github.com/pulumi/pulumi/pkg/engine.newUpdateSource|github.com/pulumi/pulumi/pkg/engine.newUpdateSource>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/update.go:353
<http://github.com/pulumi/pulumi/pkg/engine.plan|github.com/pulumi/pulumi/pkg/engine.plan>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/plan.go:131
<http://github.com/pulumi/pulumi/pkg/engine.update|github.com/pulumi/pulumi/pkg/engine.update>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/update.go:398
<http://github.com/pulumi/pulumi/pkg/engine.Update|github.com/pulumi/pulumi/pkg/engine.Update>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/engine/update.go:177
<http://github.com/pulumi/pulumi/pkg/backend/filestate.(*localBackend).apply|github.com/pulumi/pulumi/pkg/backend/filestate.(*localBackend).apply>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/backend/filestate/backend.go:507
<http://github.com/pulumi/pulumi/pkg/backend/filestate.(*localBackend).Preview|github.com/pulumi/pulumi/pkg/backend/filestate.(*localBackend).Preview>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/backend/filestate/backend.go:415
<http://github.com/pulumi/pulumi/pkg/backend.PreviewStack|github.com/pulumi/pulumi/pkg/backend.PreviewStack>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/backend/stack.go:77
<http://github.com/pulumi/pulumi/pkg/backend/filestate.(*localStack).Preview|github.com/pulumi/pulumi/pkg/backend/filestate.(*localStack).Preview>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/backend/filestate/stack.go:68
<http://github.com/pulumi/pulumi/cmd.newPreviewCmd.func1|github.com/pulumi/pulumi/cmd.newPreviewCmd.func1>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/cmd/preview.go:155
<http://github.com/pulumi/pulumi/pkg/util/cmdutil.RunResultFunc.func1|github.com/pulumi/pulumi/pkg/util/cmdutil.RunResultFunc.func1>
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/pkg/util/cmdutil/exit.go:112
<http://github.com/spf13/cobra.(*Command).execute|github.com/spf13/cobra.(*Command).execute>
	/private/tmp/pulumi-20200319-67324-1vstl0e/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:766
<http://github.com/spf13/cobra.(*Command).ExecuteC|github.com/spf13/cobra.(*Command).ExecuteC>
	/private/tmp/pulumi-20200319-67324-1vstl0e/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:852
<http://github.com/spf13/cobra.(*Command).Execute|github.com/spf13/cobra.(*Command).Execute>
	/private/tmp/pulumi-20200319-67324-1vstl0e/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:800
main.main
	/private/tmp/pulumi-20200319-67324-1vstl0e/src/github.com/pulumi/pulumi/main.go:49
runtime.main
	/usr/local/Cellar/go/1.14/libexec/src/runtime/proc.go:203
runtime.goexit
	/usr/local/Cellar/go/1.14/libexec/src/runtime/asm_amd64.s:1373
w

white-balloon-205

03/29/2020, 3:20 AM
I expect this is a symptom of https://github.com/pulumi/pulumi/issues/4139, which was fixed in the latest Pulumi CLI released yesterday. This particular failure typically masks some actual error preventing your Go code from compiling or running correctly.
4 Views