pulumi-azure-native: go get issues 'source tree too large'

Getting the latest (1.23.0) Golang package as mentioned on the README page:
go get github.com/pulumi/pulumi-azure-native/sdk
gives me a
go get: create zip: module source tree too large (max size is 524288000 bytes)

Anyone else seen that?

Steps to reproduce

  1. go get github.com/pulumi/pulumi-azure-native/sdk@v1.23.0

Expected: Package being downloaded as usual Actual: Fails with message: go get: create zip: module source tree too large (max size is 524288000 bytes)

When listing the packages I stumbled over this link: https://sum.golang.org/lookup/github.com/pulumi/pulumi-azure-native/sdk@v1.22.0
Which gives you a size of it of 6553257 bytes (~6mb) whereas
https://sum.golang.org/lookup/github.com/pulumi/pulumi-azure-native/sdk@v1.23.0
takes quite a while and reports a size of >524288000 bytes (~512mb). There seems to be something that was running away to produce a so much increased size (90+ times bigger)

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 21 (18 by maintainers)

Most upvoted comments

I’m not so much worried about the issue itself but that a troublesome release was published! On our Pulumi project we have automation in place to upgrade our code to the latest versions to check whether it still works (this is actually how we detected this issue). Maybe others do so as well and all might file an issue for it. I would suggest to first either invalidate v1.23.0 or publish v1.22.0 (which was working fine for us) as v1.23.1 (or however the numbering scheme is done here).

could you elaborate your idea on a ticket too? How can codegen identify that input/args/array forms are not necessary? By inspecting API surface and noting that a type is never used in argument positions to funcs/resources?

Yes, that’s one option. I’d also be happy to provide an explicit schema annotation for output-only types.

Same for go mod vendor pulumi version > v3.10.3 go version > go1.16 linux/amd64