Skip to content

Commit

Permalink
Merge pull request golang#1606 from terminatingcode/prune-cmd-docs-link
Browse files Browse the repository at this point in the history
Amend prune command line message to include doc link
  • Loading branch information
carolynvs authored Jan 31, 2018
2 parents 0d708ff + 85ac26e commit 9b3721f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/dep/prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ func (cmd *pruneCommand) Register(fs *flag.FlagSet) {

func (cmd *pruneCommand) Run(ctx *dep.Ctx, args []string) error {
ctx.Err.Printf("Pruning is now performed automatically by dep ensure.\n")
ctx.Err.Printf("Set prune settings in %s and it it will be applied when running ensure.\n", dep.ManifestName)
ctx.Err.Printf("Set prune settings in %s and it will be applied when running ensure.\n", dep.ManifestName)
ctx.Err.Printf("\nThis command currently still prunes as it always has, to ease the transition.\n")
ctx.Err.Printf("However, it will be removed in a future version of dep.\n")
ctx.Err.Printf("\nNow is the time to update your Gopkg.toml and remove `dep prune` from any scripts.\n")
ctx.Err.Printf("\nFor more information, see: https://golang.github.io/dep/docs/Gopkg.toml.html#prune\n")

p, err := ctx.LoadProject()
if err != nil {
Expand Down

0 comments on commit 9b3721f

Please sign in to comment.