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

Commit 142735b

Browse files
committed
prune: Tweak help and output wording a bit
1 parent 7c4a5d6 commit 142735b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/dep/prune.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ import (
1010
"github.com/golang/dep"
1111
)
1212

13-
const pruneShortHelp = `Prune was merged into ensure. Use ensure instead.`
13+
const pruneShortHelp = `Pruning is now performed automatically by dep ensure.`
1414
const pruneLongHelp = `
1515
Prune was merged into the ensure command.
1616
Set prune options in the manifest and it will be applied after every ensure.
17+
dep prune will be removed in a future version of dep, causing this command to exit non-0.
1718
`
1819

1920
type pruneCommand struct{}
@@ -27,8 +28,9 @@ func (cmd *pruneCommand) Hidden() bool { return true }
2728
func (cmd *pruneCommand) Register(fs *flag.FlagSet) {}
2829

2930
func (cmd *pruneCommand) Run(ctx *dep.Ctx, args []string) error {
30-
ctx.Out.Printf("Prune was merged into ensure.\n")
31+
ctx.Out.Printf("Pruning is now performed automatically by dep ensure.\n")
3132
ctx.Out.Printf("Set prune settings in %s and it it will be applied when running ensure.\n", dep.ManifestName)
33+
ctx.Out.Printf("\ndep prune will be removed in a future version, and this command will exit non-0.\nPlease update your scripts.\n")
3234

3335
return nil
3436
}

0 commit comments

Comments
 (0)