You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
returnerrors.Errorf("%s is not present in %s, cannot -update it", pc.Ident.ProjectRoot, dep.LockName)
366
-
}
367
-
368
-
ifpc.Ident.Source!="" {
369
-
returnerrors.Errorf("cannot specify alternate sources on -update (%s)", pc.Ident.Source)
370
-
}
371
-
372
-
if!gps.IsAny(pc.Constraint) {
373
-
// TODO(sdboyer) constraints should be allowed to allow solves that
374
-
// target particular versions while remaining within declared constraints
375
-
returnerrors.Errorf("version constraint %s passed for %s, but -update follows constraints declared in %s, not CLI arguments", pc.Constraint, pc.Ident.ProjectRoot, dep.ManifestName)
errCh<-errors.Errorf("%s is not present in %s, cannot -update it", pc.Ident.ProjectRoot, dep.LockName)
803
+
return
804
+
}
805
+
806
+
ifpc.Ident.Source!="" {
807
+
errCh<-errors.Errorf("cannot specify alternate sources on -update (%s)", pc.Ident.Source)
808
+
return
809
+
}
810
+
811
+
if!gps.IsAny(pc.Constraint) {
812
+
// TODO(sdboyer) constraints should be allowed to allow solves that
813
+
// target particular versions while remaining within declared constraints.
814
+
errCh<-errors.Errorf("version constraint %s passed for %s, but -update follows constraints declared in %s, not CLI arguments", pc.Constraint, pc.Ident.ProjectRoot, dep.ManifestName)
815
+
return
816
+
}
817
+
818
+
// Valid argument.
819
+
argsCh<-arg
820
+
}(arg)
821
+
}
822
+
823
+
wg.Wait()
824
+
close(errCh)
825
+
close(argsCh)
826
+
827
+
// Log all the errors.
828
+
iflen(errCh) >0 {
829
+
ctx.Err.Printf("Invalid arguments passed to ensure -update:\n\n")
"version constraint master passed for github.com/golang/dep, but -update follows constraints declared in Gopkg.toml, not CLI arguments",
0 commit comments