-
Notifications
You must be signed in to change notification settings - Fork 645
Reconsider default of go.installDependenciesWhenBuilding #2836
Comments
I am not an expert on the Looping in @mattetti who made the initial PR #718 to add the |
It's quite clear that this flag isn't needed and might indeed slow things down. Thanks @segevfiner |
/cc @jayconrod as the |
Assuming nothing actually depends on .a files being installed into In GOPATH mode, there may be some performance cost to using In module mode, I don't think |
So, we are leaning towards not using |
Seems like it...? I think the only thing we need to make sure is that we don't use some tool that otherwise depends on |
Looks like github.com/mdempsky/gocode (non-modules) still relies on "go/pkg" installed packages as it doesn't show any completion for me when I disable |
Thanks @segevfiner People not using modules or the language server still end up using github.com/mdempsky/gocode, so we will keep this default value as is for now. |
Do any Go tools we use still depend on installed packages, that is
go build -i
? If the answer is no, then as AFAIK installing dependencies is just a waste of time and space at that point and we should consider changing the default ofgo.installDependenciesWhenBuilding
tofalse
.I think it's a mechanism left for backwards compatibility for stuff that depended on it, from the Go 1.10 release notes:
— https://golang.org/doc/go1.10#build
The text was updated successfully, but these errors were encountered: