alecthomas / SublimeLinter-contrib-gometalinter

SublimeLinter plugin for gometalinter
MIT License
47 stars 13 forks source link

Add setting for the GOROOT environment variable #10

Closed cixtor closed 7 years ago

cixtor commented 7 years ago

Users might choose to set a different value for the GOROOT environment variable than the standard, this confuses some of the linters like the one that checks for the imported packages because it is not able to find them in the assumed GOROOT from the system. Users with a custom dev env should be able to set their own variables from the settings, example:

"gometalinter": {
  "disable": false,
  "args": [],
  "excludes": [],
  "goroot": "/opt/golang/build",
  "gopath": "/opt/golang/gopath"
}
alecthomas commented 7 years ago

Seems like a good idea, thanks!