I've not been able to reproduce this locally and i...
# golang
b
I've not been able to reproduce this locally and it's possible it is not Pulumi related. However in our CI setup since adding a Pulumi program we keep getting errors like the following for a lot of linters run with
golangci-lint
1.31.0
Copy code
ERRO Running error: gofmt: analysis skipped: errors in package: [/home/circleci/project/cmd/pulumi/main.go:11:2: could not import <http://github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute|github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute> (-: could not load export data: no export data for "<http://github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute|github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute>")]
It is not only
gofmt
but happens for
gocritic
and
errcheck
as well. I don't know what the error means but that package specifically has caused a lot of pain as it is linking ~3000 types taking up considerable resources. Does anyone know what the error means and possibly how to address it other than disabling the linters? I'm at a loss.
Seems adjusting
GOGC
to make the garbage collector very aggressive is one solution. I'm still not sure what is happening though.