Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 088af81

Browse files
committed
Only allow a version to change when using -update
1 parent cd7da74 commit 088af81

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

cmd/dep/ensure.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,6 @@ func applyEnsureArgs(args []string, overrides stringSlice, p *dep.Project, sm *g
209209
Source: pc.Ident.Source,
210210
Constraint: pc.Constraint,
211211
}
212-
213-
// Ignore the lockfile for this dependency and allow its version to change
214-
params.ToChange = append(params.ToChange, pc.Ident.ProjectRoot)
215212
}
216213

217214
for _, ovr := range overrides {
@@ -229,9 +226,6 @@ func applyEnsureArgs(args []string, overrides stringSlice, p *dep.Project, sm *g
229226
Source: pc.Ident.Source,
230227
Constraint: pc.Constraint,
231228
}
232-
233-
// Ignore the lockfile for this dependency and allow its version to change
234-
params.ToChange = append(params.ToChange, pc.Ident.ProjectRoot)
235229
}
236230

237231
if len(errs) > 0 {

0 commit comments

Comments
 (0)