Unfortunately, I do not know about govendor. But from what I understand, when building a binary with GO111MODULE=on, a single version of each dependency will be used for the whole build. Russ Cox calls it minimal version selection (see his blog post on Dec 3rd, 2019).
I've a doubt about Go111module=on which saves one version of packages only in GOPATH
What do you mean? GO111MODULE=on will remember (in go.sum) the version of dependencies and save each dependency copy in GOPATH/pkg/mod (i.e. one git clone at a fixed version if you will).
Note that GO111MODULE=on works very differently from node_modules since a single version is used per package, even when the package is used in multiple dependencies across the dependency tree.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi sameen,
Unfortunately, I do not know about
govendor
. But from what I understand, when building a binary withGO111MODULE=on
, a single version of each dependency will be used for the whole build. Russ Cox calls it minimal version selection (see his blog post on Dec 3rd, 2019).What do you mean?
GO111MODULE=on
will remember (in go.sum) the version of dependencies and save each dependency copy inGOPATH/pkg/mod
(i.e. one git clone at a fixed version if you will).Note that
GO111MODULE=on
works very differently fromnode_modules
since a single version is used per package, even when the package is used in multiple dependencies across the dependency tree.