gvt icon indicating copy to clipboard operation
gvt copied to clipboard

Do not copy subpackages if they are not imported

Open FiloSottile opened this issue 9 years ago • 5 comments

FiloSottile avatar Mar 21 '16 13:03 FiloSottile

Blocked by #22 and #27

FiloSottile avatar Mar 25 '16 16:03 FiloSottile

For example fetching golang.org/x/oauth2 should not copy golang.org/x/oauth2/google, and so google.golang.org/cloud/compute/metadata should not be fetched.

FiloSottile avatar Mar 25 '16 17:03 FiloSottile

However this is a breaking change for restore as subpackages people are relying on might not be explicitly set in the manifest. So needs a "NoSubpackages" default on option. Sigh restore.

FiloSottile avatar Mar 25 '16 17:03 FiloSottile

The transition should be handled by the purge command (#16)

FiloSottile avatar Apr 13 '16 06:04 FiloSottile

@davecheney I am about to change this behavior, so I thought I would ask you what was the original reason for the design (vendoring all the subpackages). Thanks :)

FiloSottile avatar Aug 15 '16 10:08 FiloSottile