{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-go/issues/141","labels_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/141/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/141/events","html_url":"https://github.com/Microsoft/vscode-go/issues/141","id":120116257,"number":141,"title":"[mac os x] GOPATH isn't taken from current terminal session","user":{"login":"voelzmo","id":2256887,"avatar_url":"https://avatars.githubusercontent.com/u/2256887?v=3","gravatar_id":"","url":"https://api.github.com/users/voelzmo","html_url":"https://github.com/voelzmo","followers_url":"https://api.github.com/users/voelzmo/followers","following_url":"https://api.github.com/users/voelzmo/following{/other_user}","gists_url":"https://api.github.com/users/voelzmo/gists{/gist_id}","starred_url":"https://api.github.com/users/voelzmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voelzmo/subscriptions","organizations_url":"https://api.github.com/users/voelzmo/orgs","repos_url":"https://api.github.com/users/voelzmo/repos","events_url":"https://api.github.com/users/voelzmo/events{/privacy}","received_events_url":"https://api.github.com/users/voelzmo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-03T08:20:52Z","updated_at":"2015-12-10T18:47:00Z","closed_at":"2015-12-10T18:47:00Z","body":"I have a global GOPATH (i.e. ~/go) but for many of my projects I have an .envrc setting the GOPATH to the project's directory so they install their dependencies in their own context. When I start `code .` from such a directory, it doesn't seem to respect the local GOPATH setting.\r\n\r\nSteps to reproduce:\r\n* have a global GOPATH in your `.bash_profile`\r\n* my function to start visual studio code looks like this `code () { VSCODE_CWD=\"$PWD\" open -n -b \"com.microsoft.VSCode\" --args $* ;}`\r\n* open a terminal session\r\n* switch to some directory with your go code in it\r\n* set your GOPATH to this directory\r\n* open `code .`\r\n\r\nExpected:\r\n* all dependencies installed in `PWD/src/...` are found\r\n\r\nActual:\r\n* errors that the referenced dependencies cannot be found anywhere. The error message is referencing my *global* GOPATH"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-go/issues/comments/163714571","html_url":"https://github.com/Microsoft/vscode-go/issues/141#issuecomment-163714571","issue_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/141","id":163714571,"user":{"login":"lukehoban","id":223467,"avatar_url":"https://avatars.githubusercontent.com/u/223467?v=3","gravatar_id":"","url":"https://api.github.com/users/lukehoban","html_url":"https://github.com/lukehoban","followers_url":"https://api.github.com/users/lukehoban/followers","following_url":"https://api.github.com/users/lukehoban/following{/other_user}","gists_url":"https://api.github.com/users/lukehoban/gists{/gist_id}","starred_url":"https://api.github.com/users/lukehoban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukehoban/subscriptions","organizations_url":"https://api.github.com/users/lukehoban/orgs","repos_url":"https://api.github.com/users/lukehoban/repos","events_url":"https://api.github.com/users/lukehoban/events{/privacy}","received_events_url":"https://api.github.com/users/lukehoban/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T18:47:00Z","updated_at":"2015-12-10T18:47:00Z","body":"Closing this one out for now - since I don't think there's anything we can/should do in the Go extension beyond what we currently do with `go.gopath` to workaround this.  We'll just need to wait for the `vscode` issue to be fixed."}}