-
Notifications
You must be signed in to change notification settings - Fork 657
Description
The go build command now maintains a cache of recently built packages, separate from the installed packages in $GOROOT/pkg or $GOPATH/pkg. The effect of the cache should be to speed builds that do not explicitly install packages or when switching between different copies of source code (for example, when changing back and forth between different branches in a version control system). The old advice to add the -i flag for speed, as in go build -i or go test -i, is no longer necessary: builds run just as fast without -i. For more details, see go help cache.
From https://tip.golang.org/doc/go1.10#build
If I am not mistaken gocode uses the pkg dir to help complete. One specific example I know of is completing an import. It seems the pkg
directory may be populated less often, so will not be as reliable for helping with completion. I am unsure if this will actually affect gocode in practice, just filing to open the discussion.