Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 37d9ea0

Browse files
committed
dep: Sharpen dep prune warning message
1 parent c96dae4 commit 37d9ea0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cmd/dep/prune.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ func (cmd *pruneCommand) Register(fs *flag.FlagSet) {
4141
}
4242

4343
func (cmd *pruneCommand) Run(ctx *dep.Ctx, args []string) error {
44-
ctx.Out.Printf("Pruning is now performed automatically by dep ensure.\n")
45-
ctx.Out.Printf("Set prune settings in %s and it it will be applied when running ensure.\n", dep.ManifestName)
46-
ctx.Out.Printf("\ndep prune will be removed in a future version, and this command will exit non-0.\nPlease update your scripts.\n")
44+
ctx.Err.Printf("Pruning is now performed automatically by dep ensure.\n")
45+
ctx.Err.Printf("Set prune settings in %s and it it will be applied when running ensure.\n", dep.ManifestName)
46+
ctx.Err.Printf("\nThis command currently still prunes as it always has, to ease the transition.\n")
47+
ctx.Err.Printf("However, it will be removed in a future version of dep.\n")
48+
ctx.Err.Printf("\nNow is the time to update your Gopkg.toml and remove `dep prune` from any scripts.\n")
4749

4850
p, err := ctx.LoadProject()
4951
if err != nil {

0 commit comments

Comments
 (0)