Hey all, I'm using aws-sdk in golang for writing m...
# getting-started
c
Hey all, I'm using aws-sdk in golang for writing my infrastructure as a code. I just saw this blog post on generics: https://www.pulumi.com/blog/go-generics-preview/ It says to use this import URL:
<https://github.com/pulumi/pulumi-aws/sdk/v6/go/aws/x/s3>
But it's failing import and running
go get
says:
Copy code
<http://github.com/pulumi/pulumi-aws/sdk/v6/go/aws/x/s3|github.com/pulumi/pulumi-aws/sdk/v6/go/aws/x/s3>: cannot find module providing package <http://github.com/pulumi/pulumi-aws/sdk/v6/go/aws/x/s3|github.com/pulumi/pulumi-aws/sdk/v6/go/aws/x/s3>
Can anyone help me figure out this? Thanks!
i
Hi @cuddly-journalist-77210, Can you confirm that you ran
go get <http://github.com/pulumi/pulumi-aws/sdk/v6@generics|github.com/pulumi/pulumi-aws/sdk/v6@generics>
and
go mod tidy
?
I double checked the url and does match the source: https://github.com/pulumi/pulumi-aws/tree/generics/sdk/go/aws/x/s3. Note that you need to use the
@generics
as it's not in the main branch.
c
ah, didn't know about the '@generics' part. thanks!