-
Notifications
You must be signed in to change notification settings - Fork 1k
dep ensure is not as aggressive as dep prune #1820
Comments
Hi @bhcleek, |
Thanks, @mattayes. I realize that I can provide specific differences later if my description and instructions above are insufficient. |
I crafted a script to show the differences between the two approaches to pruning:
|
@bhcleek Do I have to check out your specific branch for this to happen or can I use |
I cherry-picked one commit into the branch in my fork, but otherwise it's the same. bhcleek/digitalocean-cloud-controller-manager@c34a5cd was originally done in digitalocean/digitalocean-cloud-controller-manager@e1e66d8, but it came after the |
We have this [dep](golang/dep#1820) issue with non-go files while prune-ing (dep ensure actually). This triggers the page build failures we wanted to address with #452
We have this [dep](golang/dep#1820) issue with non-go files while prune-ing (dep ensure actually). This triggers the page build failures we wanted to address with #452
Yeah, this is just one of those things - the whole conceptual basis for pruning changed substantially with the introduction of separate pruning options. The goal was never really 1:1 parity, though we did try to be reasonably close. i'm happy to discuss making some of the new pruning behaviors more aggressive in more targeted issues, but because this issue is sorta implicitly about the non-goal of achieving parity with the old |
What version of
dep
are you using (dep version
)?Tested with
dep:
version : v0.4.1
build date : 2018-01-27
git hash : 37d9ea0
go version : go1.9.3
go compiler : gc
platform : darwin/amd64
And with v0.4.1-145-gd5c4d780
What
dep
command did you run?With a
[prune]
configuration:dep ensure; git status; dep prune; git status
What did you expect to see?
I expected
dep prune
to not remove anything.What did you see instead?
dep prune
removed a lot.Additional details:
One simple way to duplicate this is to clone bhcleek/digitalocean-cloud-controller-manager@c34a5cd, add
, and then run
dep ensure -update github.com/spf13/pflag
, check the output ofgit status
, rundep prune
and check the output ofgit status
; the output of the firstgit status
is more substantial than the second.edit: changed repo URL and commit sha to avoid introducing unrelated concerns.
The text was updated successfully, but these errors were encountered: