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.
The entire golang.org/x/crypto package gets checked into my vendor directory, which is sort of sad because I only need three files (out of 259) in that repo. This means more disk, more bandwidth, longer checkouts, harder to find what you are looking for &c.
It also seems like dep has the ability to determine which packages in a Git repo are actually being used, in the lock file:
It would be nice if dep only put the packages you needed in vendor or at the very least if there was an FAQ to the effect of "Why is dep checking in the entire Git repo when I only need one package?"
The text was updated successfully, but these errors were encountered:
(my apologies if this has been previously reported - I scanned the FAQ questions, searched for "vendor git", "vendor git repo" and didn't see anything promising)
sdboyer
changed the title
"dep init" checks out entire Git repo even if only one package is needed
FAQ: document the removal of unnecessary packages, currently via dep prune
Aug 3, 2017
If I run
dep init
for this file:The entire
golang.org/x/crypto
package gets checked into my vendor directory, which is sort of sad because I only need three files (out of 259) in that repo. This means more disk, more bandwidth, longer checkouts, harder to find what you are looking for &c.It also seems like
dep
has the ability to determine which packages in a Git repo are actually being used, in the lock file:It would be nice if
dep
only put the packages you needed in vendor or at the very least if there was an FAQ to the effect of "Why is dep checking in the entire Git repo when I only need one package?"The text was updated successfully, but these errors were encountered: