Hi <@UK4HNFLCB> - wondering if you can help? Pulum...
# general
r
Hi @limited-rainbow-51650 - wondering if you can help? Pulumi recently release v3.92.0 I'm using
pulumi new
remote GitLab project e.g.
pulumi new <mailto:git@gitlab.com|git@gitlab.com>:group/project.git
and have been specifically using the SSH URL. This worked fine with v3.91.0. I just installed v3.91.1 to test and conclusively confirm. v3.92.0 is, once again, producing a fatal error:
Copy code
================================================================================
The Pulumi CLI encountered a fatal error. This is a bug!
We would appreciate a report: <https://github.com/pulumi/pulumi/issues/>
Please provide all of the below text in your report.
================================================================================
Pulumi Version:   v3.92.0
Go Version:       go1.21.3
Go Compiler:      gc
Architecture:     amd64
Operating System: linux
Panic:            runtime error: invalid memory address or nil pointer dereference
I'm almost 100% confident that this relates to the use of the SSH URL as I have encountered this before.
Copy code
goroutine 1 [running]:
runtime/debug.Stack()
        /opt/hostedtoolcache/go/1.21.3/x64/src/runtime/debug/stack.go:24 +0x5e
main.panicHandler(0xc001bbff07)
        /home/runner/work/pulumi/pulumi/pkg/cmd/pulumi/main.go:35 +0x45
panic({0x2671940?, 0x481e270?})
        /opt/hostedtoolcache/go/1.21.3/x64/src/runtime/panic.go:914 +0x21f
<http://github.com/pulumi/pulumi/sdk/v3/go/common/workspace.isZIPTemplateURL({0x7ffcc717328d|github.com/pulumi/pulumi/sdk/v3/go/common/workspace.isZIPTemplateURL({0x7ffcc717328d>?, 0x6?})
        /home/runner/work/pulumi/pulumi/sdk/go/common/workspace/templates_zip.go:41 +0x18
<http://github.com/pulumi/pulumi/sdk/v3/go/common/workspace.RetrieveTemplates({0x7ffcc717328d|github.com/pulumi/pulumi/sdk/v3/go/common/workspace.RetrieveTemplates({0x7ffcc717328d>, 0x44}, 0x0?, 0x100?)
        /home/runner/work/pulumi/pulumi/sdk/go/common/workspace/templates.go:287 +0x4a
main.runNew({0x32a49a0?, 0x48a58c0}, {{0x48a58c0, 0x0, 0x0}, 0x0, {0x0, 0x0}, {0x0, 0x0}, ...})
        /home/runner/work/pulumi/pulumi/pkg/cmd/pulumi/new.go:146 +0x54a
main.newNewCmd.func2(0x0?, {0xc001a2d880, 0x1, 0x0?})
        /home/runner/work/pulumi/pulumi/pkg/cmd/pulumi/new.go:479 +0x118
main.newNewCmd.RunFunc.func4(0x0?, {0xc001a2d880?, 0x0?, 0x0?})
        /home/runner/work/pulumi/pulumi/sdk/go/common/util/cmdutil/exit.go:99 +0x1c
main.newNewCmd.RunFunc.RunResultFunc.func7(0xc001b4a100?, {0xc001a2d880, 0x1, 0x8})
        /home/runner/work/pulumi/pulumi/sdk/go/common/util/cmdutil/exit.go:115 +0x38
<http://github.com/spf13/cobra.(*Command).execute(0xc00168ac00|github.com/spf13/cobra.(*Command).execute(0xc00168ac00>, {0xc001a2d800, 0x8, 0x8})
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:944 +0x863
<http://github.com/spf13/cobra.(*Command).ExecuteC(0xc00168a900)|github.com/spf13/cobra.(*Command).ExecuteC(0xc00168a900)>
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3a5
<http://github.com/spf13/cobra.(*Command).Execute(...)|github.com/spf13/cobra.(*Command).Execute(...)>
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:992
main.main()
        /home/runner/work/pulumi/pulumi/pkg/cmd/pulumi/main.go:56 +0x58
s
Can you raise an issue at https://github.com/pulumi/pulumi/issues?
e
I know what this is, got a fix incoming
r
Thanks @echoing-dinner-19531 👍
n
@echoing-dinner-19531 Thanks for the fix. Could probably do with someone a Pulumi doing an analysis of the number of errors that are being skipped and creating a work to list to fix over time.
e
Yeh, on my todo list. We're generally pretty good about not doing this, but going to see if we can get linting to block changes like this in CI.