You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
We refer to this general category of work as "pruning." As of last week, there is a dep prune subcommand that will trim down the contents of your vendor directory, at least somewhat.
However, please do note that that subcommand is unlikely to stick around in the long term, because (to summarize) it presents challenges for verifying package contents, and because we do ultimately view vendor/ as an implementation detail.
#120 is the canonical issue about this - see that for much more information and discussion.
I used
dep ensure
to download pkgs into vendor directory, and found there are more unused files, such as docs files, test files, etc...for examples:
If I commit vendor directory into GIT repo (to build without network and speed up), it will be made repo more larger.
In my point, only
shutil.go
is necessary in my sample for build.*.go
,*.cgo
in pkg, instead of full GIT repo.*_test.go
In the past, I used govendor, that can get a clean vendor directory.
The text was updated successfully, but these errors were encountered: