This repository was archived by the owner on Sep 9, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 .`
1414const pruneLongHelp = `
1515Prune was merged into the ensure command.
1616Set 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
1920type pruneCommand struct {}
@@ -27,8 +28,9 @@ func (cmd *pruneCommand) Hidden() bool { return true }
2728func (cmd * pruneCommand ) Register (fs * flag.FlagSet ) {}
2829
2930func (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 ("\n dep prune will be removed in a future version, and this command will exit non-0.\n Please update your scripts.\n " )
3234
3335 return nil
3436}
You can’t perform that action at this time.
0 commit comments