This repository was archived by the owner on Jul 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 646
support for GOPACKAGESDRIVER env variable? #2755
Comments
(I also opened golang/go#34341 to get that env var documented in a more public way) |
Oh, I think I was reading outdated docs on the wiki? Is using |
Or maybe there's an undocumented |
You can set the "go.toolsEnvVars": {
"GOPACKAGESDRIVER": "mygopackagesdriver"
} or "gopls": {
"env": {
"GOPACKAGESDRIVER": "mygopackagesdriver"
}
} The difference is that if you set |
I agree with @stamblerre |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
gopls
, by way ofgolang.org/x/tools/go/packages
, supports using the environment variableGOPACKAGESDRIVER
to allow for build systems other than thego
tooling (such asbazel
) to provide the look ups forgopls
.However, there doesn't seem to be a way to set that env var as a workspace setting. I'm trying to help out with bazel's attempt at supporting
gopls
(documented at bazel-contrib/rules_go#512 and https://github.com/bazelbuild/rules_go/wiki/Editor-and-tool-integration) which relies on this.(While there's no godoc.org documentation of it,
GOPACKAGESDRIVER
is described in thego/packages
code base in external.go)Is there some way to set the
GOPACKAGESDRIVER
environment variable in my settings.json?The text was updated successfully, but these errors were encountered: