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

gifted-city-99717

05/27/2020, 4:10 PM
trying again: has anyone seen this error while running tests? I could use a sanity check.
Copy code
♥ λ go test -v
# <http://github.com/pulumi/pulumi/pkg/v2/resource/stack|github.com/pulumi/pulumi/pkg/v2/resource/stack>
../../../../../../pkg/mod/github.com/pulumi/pulumi/pkg/v2@v2.2.1/resource/stack/deployment.go:405:10: secret.Plaintext undefined (type apitype.SecretV1 has no field or method Plaintext)
FAIL	notifying-sink [build failed]
thanks!
b

broad-dog-22463

05/27/2020, 10:00 PM
is that a simple bucket resource @gifted-city-99717?
if so, can you bump pulumi/pkg and sdk to v2.3.0 in your go.mod file and try again?
g

gifted-city-99717

05/27/2020, 10:01 PM
that test does create a bucket
awesome. yup. will give it a try. thanks, Paul!
b

broad-dog-22463

05/27/2020, 10:02 PM
I believe this may be due to the mixed sdk and pkg versions but I can test that out tomorrow when I am back online (it's 2302 here)
but please ping me direct if that doesn't work
I can investigate in the morning
g

gifted-city-99717

05/27/2020, 10:18 PM
Upgrading to 2.3.0 did the trick! Thanks again for the help
b

broad-dog-22463

05/27/2020, 10:22 PM
Any time!
g

gifted-city-99717

06/11/2020, 10:49 PM
Hey @broad-dog-22463 - I upgraded to 2.4.0 and am seeing the error again:
Copy code
♥ λ go test -v -cover -tags integration
# <http://github.com/pulumi/pulumi/pkg/v2/resource/stack|github.com/pulumi/pulumi/pkg/v2/resource/stack>
../../../pkg/mod/github.com/pulumi/pulumi/pkg/v2@v2.4.0/resource/stack/deployment.go:405:10: secret.Plaintext undefined (type apitype.SecretV1 has no field or method Plaintext)
I double checked to make sure I’m not importing something I shouldn’t - every import is pointing to a
pulumi/sdk/v2
3 Views