This repository was archived by the owner on Sep 9, 2020. It is now read-only.
File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,11 @@ import (
10
10
"github.com/golang/dep"
11
11
)
12
12
13
- const pruneShortHelp = `Prune was merged into ensure. Use ensure instead .`
13
+ const pruneShortHelp = `Pruning is now performed automatically by dep ensure .`
14
14
const pruneLongHelp = `
15
15
Prune was merged into the ensure command.
16
16
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.
17
18
`
18
19
19
20
type pruneCommand struct {}
@@ -27,8 +28,9 @@ func (cmd *pruneCommand) Hidden() bool { return true }
27
28
func (cmd * pruneCommand ) Register (fs * flag.FlagSet ) {}
28
29
29
30
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 " )
31
32
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 " )
32
34
33
35
return nil
34
36
}
You can’t perform that action at this time.
0 commit comments