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

tall-umbrella-19082

04/26/2020, 1:20 AM
And renamed
NewFunctionsIamMember
to
NewFunctionIamMember
w

white-balloon-205

04/26/2020, 1:26 AM
All of these examples are using
v2
. I would expect that if you are using
go mod
to acquire dependencies as suggested in READMEs that you would get the v2 versions of all modules and would not see this error. To get this error - you must have somehow acquired a version of one of that packages that is not mentioned in the go.mod and installed it in your GoPATH?
FWIW - I would strongly recommend using the v2 versions as the pre-2.0.0 versions were preview for Go and are not guaranteed to work as seamlessly.
t

tall-umbrella-19082

04/26/2020, 1:59 AM
Using v2 of the sdk leads to the Context issues
w

white-balloon-205

04/26/2020, 2:57 AM
If you are using v2 of all packages you will not hit that error. You can see that the second type it mentions is not a v2 type.
t

tall-umbrella-19082

04/26/2020, 11:40 PM
When I run
pulumi up
you can see it extracting v1.13.1. I haven’t modified
go.sum
nor dependencies in
main.go
w

white-balloon-205

04/27/2020, 12:52 AM
As noted in the other thread - there is a bug in that example which I expect causes this. I believe https://github.com/pulumi/examples/pull/667/files will fix this.
t

tall-umbrella-19082

04/27/2020, 1:33 PM
Thanks. I was going to a submit a few of the changes covered in the PR.
3 Views