Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Commit

Permalink
Do not run prune
Browse files Browse the repository at this point in the history
'prune' is now part of 'ensure' and configured on per-project-level in
Gopkg.toml. See golang/dep#944.
  • Loading branch information
bpicode committed Feb 10, 2018
1 parent af50fa5 commit 2d82566
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cmd/pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,7 @@ func gitCommit(ctx *projectCtx) error {
func depUpdate(ctx *projectCtx) error {
logrus.Infof("Updating dependencies")
err := ctx.command("dep", "ensure", "-update").Run()
if err != nil {
return errors.Wrap(err, "dep ensure -update failed")
}
err = ctx.command("dep", "prune").Run()
return errors.Wrap(err, "dep prune failed")
return errors.Wrap(err, "dep ensure -update failed")
}

func checkoutBranch(ctx *projectCtx) error {
Expand Down

0 comments on commit 2d82566

Please sign in to comment.