ctaggart / golang-vscode

docker image with golang and vscode
MIT License
16 stars 9 forks source link

GOPATH adjustments #8

Closed ctaggart closed 8 years ago

ctaggart commented 8 years ago

See https://github.com/Microsoft/vscode-go/issues/185#issuecomment-215982936

There are 3 sources for GOPATH:

  1. export in ~/.bash_profile such as export GOPATH=~/go
  2. environment variable such as GOPATH=pwdcode .
  3. go.gopath workspace settings .vscode/settings.json

Currently, if 1 is used, it wins even if 2 is used. The problems appears to be that VSCode load is sourcing ~/.bash_profile. If it didn't do that, I think the setting of GOPATH would make sense.