{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-go/issues/1861","repository_url":"https://api.github.com/repos/Microsoft/vscode-go","labels_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/1861/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/1861/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/1861/events","html_url":"https://github.com/Microsoft/vscode-go/issues/1861","id":352357955,"node_id":"MDU6SXNzdWUzNTIzNTc5NTU=","number":1861,"title":"go.buildOnSave = \"workspace\" is building too much","user":{"login":"EmpireJones","id":15959998,"node_id":"MDQ6VXNlcjE1OTU5OTk4","avatar_url":"https://avatars1.githubusercontent.com/u/15959998?v=4","gravatar_id":"","url":"https://api.github.com/users/EmpireJones","html_url":"https://github.com/EmpireJones","followers_url":"https://api.github.com/users/EmpireJones/followers","following_url":"https://api.github.com/users/EmpireJones/following{/other_user}","gists_url":"https://api.github.com/users/EmpireJones/gists{/gist_id}","starred_url":"https://api.github.com/users/EmpireJones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmpireJones/subscriptions","organizations_url":"https://api.github.com/users/EmpireJones/orgs","repos_url":"https://api.github.com/users/EmpireJones/repos","events_url":"https://api.github.com/users/EmpireJones/events{/privacy}","received_events_url":"https://api.github.com/users/EmpireJones/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-21T02:03:53Z","updated_at":"2018-08-21T02:03:53Z","closed_at":null,"author_association":"NONE","body":"Steps to Reproduce:\r\n\r\n1. `go get` a library with conditional dependencies (those which are only needed if you use a particular sub-package), for example, I believe cloud.google.com/go fits this criteria\r\n2. set go.buildOnSave setting to \"workspace\"\r\n\r\nThis ends up building all packages, even those which you have no need for. This results in numerous errors regarding \"cannot find package\", because you don't have all conditional dependencies.\r\n\r\nIdeally only relevant files should be built.\r\n\r\n---\r\n\r\nWould it make sense to add a new buildOnSave option (or similar) to identify the applicable root folder of your project, and then only build packages outside of that when referenced from the code?\r\n\r\n\r\n"}}
{"actor":{"display_login":"EmpireJones"}}