salmon-account-74572
07/02/2021, 6:25 PMpulumi preview
I get this:
panic: sync: WaitGroup is reused before previous Wait has returned
goroutine 1 [running]:
sync.(*WaitGroup).Wait(0xc000386258)
/usr/local/go/src/sync/waitgroup.go:132 +0xae
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).wait|github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).wait>(0xc000386140, 0x0, 0x0)
/Users/slowe/Code/Go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.4.0/go/pulumi/context.go:156 +0x50
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.RunWithContext(0xc000386140|github.com/pulumi/pulumi/sdk/v3/go/pulumi.RunWithContext(0xc000386140>, 0x1c3a4c8, 0xc0000440ef, 0xc)
/Users/slowe/Code/Go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.4.0/go/pulumi/run.go:112 +0x2a6
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.RunErr(0x1c3a4c8|github.com/pulumi/pulumi/sdk/v3/go/pulumi.RunErr(0x1c3a4c8>, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/slowe/Code/Go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.4.0/go/pulumi/run.go:84 +0x23f
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.Run(0x1c3a4c8|github.com/pulumi/pulumi/sdk/v3/go/pulumi.Run(0x1c3a4c8>, 0x0, 0x0, 0x0)
/Users/slowe/Code/Go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.4.0/go/pulumi/run.go:41 +0x59
main.main()
/Users/slowe/Code/Repos/lab/infra/aws-infra-go/main.go:14 +0x3e
exit status 2
error: an unhandled error occurred: program exited with non-zero exit code: 1
If I comment out the NAT gateway code (which consumes the EIP), then the error goes away.
This worked in previous versions of the SDK. I can share my code upon request, in the event that I’m doing something incorrectly.pulumi.DependsOn
to add an explicit dependency on the Elastic IP. I don’t know if this is an expected change from previous versions of the SDK, or if this reflects a potential error/bug in the SDK.billowy-army-68599
07/02/2021, 7:04 PMsalmon-account-74572
07/02/2021, 7:23 PMpulumi.DependsOn
isn’t necessarily the fix; the error just occurred again.go.mod
to go 1.16
(this is on an ARM64 M1-based Mac).