From 2d82566bdcf99b88e841ee8dc18e2d701b32326e Mon Sep 17 00:00:00 2001 From: bpicode Date: Sat, 10 Feb 2018 10:52:32 +0100 Subject: [PATCH] Do not run prune 'prune' is now part of 'ensure' and configured on per-project-level in Gopkg.toml. See https://github.com/golang/dep/issues/944. --- cmd/pr.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cmd/pr.go b/cmd/pr.go index c4adc9b..0b2651a 100644 --- a/cmd/pr.go +++ b/cmd/pr.go @@ -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 {