https://pulumi.com logo
#getting-started
Title
# getting-started
c

cuddly-journalist-77210

01/25/2024, 6:20 PM
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

incalculable-motherboard-92742

01/26/2024, 9:58 PM
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

cuddly-journalist-77210

01/27/2024, 6:46 AM
ah, didn't know about the '@generics' part. thanks!