-
Notifications
You must be signed in to change notification settings - Fork 1k
Add --dry-run
option to dep prune
#966
Comments
hi, welcome! thanks for the issue. sure, that seems like a reasonable request - at least, when we still have an explicit |
I think we might need to provide the same behavior when prune is embedded in ensure, no? |
@ibrasho maybe, but i'm hoping not. with prune in ensure, the pruning will either complete fully and correctly, or the command will error out and no modifications (with some very edge case exceptions) will be made to the my guess is that most of what @tnozicka is trying to guard against here - and please correct me if i'm jumping to conclusions! - is developers forgetting to prune. but, as long as pruning is an automatic, unavoidable side effect of |
Oh, I missed the use case. I agree that won't be needed anymore once #952 is complete and merged. I was focused on providing enough output about which files were pruned. 😁 |
Hi @sdboyer, We should even consider people editing vendor files manually. To make that fully correct at this point you can't avoid copying because you need to first check that Feel free to close this issue if having prune integrated in ensure is close enough because than I can use the |
@tnozicka totally, this use case makes complete sense. and yes, you're highlighting a number of the issues that make doing this kinda thing a little tricky. i already pointed you to #121, which is a big part of this, but my current working plan is that pruning and verification won't be compatible (though i have a nascent idea developing about how we could dodge that). given your interest in the verification problem, it'd be great for you to have a look at #950 and weigh in 😄 (closing this, per your note) |
What version of Go (
go version
) anddep
(git describe --tags
) are you using?go version go1.8.3 linux/amd64
dep - v0.3.0-22-g11758a7
What
dep
command did you run?dep prune
Issue
In CI I need to be able to verify that
dep prune
has been run. When I was using glide, prune had option--dry-run
using this you could easily tell if it was run or the contributor forgot to do so.Could we have
--dry-run
flag withdep prune
? (Writing out files that would have been removed.)Thanks
The text was updated successfully, but these errors were encountered: