Skip to content

Change GOMODCACHE #1504

Answered by stamblerre
UncleVic asked this question in Help
May 14, 2021 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

Setting GOMODCACHE through the VS Code or gopls settings will only affect the value of that environment variable when you are in the editor or the integrated terminal. To set it globally, you will want to run go env -w GOMODCACHE="path/go/pkg/mod".

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hyangah
Comment options

Answer selected by hyangah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants