setting GONOSUMDB?

I've filed a support request for this but I figured I'd ask the community too - Go 1.13 has enabled checksum verification by default for all go modules. You can exclude verification for private repos using the GONOSUMDB environment variable, but there doesn't seem to be any support for configuring this at the moment, making module support in goland suboptimal.
I've checked the vgo preferences and there's nothing there to configure it. Failing that, there doesn't seem to be any way to set environment variables for generic tooling run by the IDE itself.
Is there a workaround for this?

1
6 comments

By extension there also doesnt seem to be support for GONOPROXY. While that's not an immediate requirement of mine, any fix for this should ideally include this. 

1
Avatar
Permanently deleted user

It makes sense to me that you'd be able to set the environment for *any* compilation tool, *especially* if the tool provides environment variables to the compilation unit.

0

Does specifying environment variables in the 'go build' run configuration options helps in your case?

0

We figured that default value of environment variables can be set via the `go env -w VAR=VALUE` command in the shell. 

1

While this workaround works, it would be great to see native support for this through the IDE config. 

0

Please sign in to leave a comment.