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.
errArgsValidationCh<-errors.Errorf("%s is not present in %s, cannot -update it", pc.Ident.ProjectRoot, dep.LockName)
802
+
errCh<-errors.Errorf("%s is not present in %s, cannot -update it", pc.Ident.ProjectRoot, dep.LockName)
803
803
return
804
804
}
805
805
806
806
ifpc.Ident.Source!="" {
807
-
errArgsValidationCh<-errors.Errorf("cannot specify alternate sources on -update (%s)", pc.Ident.Source)
807
+
errCh<-errors.Errorf("cannot specify alternate sources on -update (%s)", pc.Ident.Source)
808
808
return
809
809
}
810
810
811
811
if!gps.IsAny(pc.Constraint) {
812
812
// TODO(sdboyer) constraints should be allowed to allow solves that
813
-
// target particular versions while remaining within declared constraints
814
-
errArgsValidationCh<-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)
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
815
return
816
816
}
817
817
818
-
// Valid argument
819
-
validArgsCh<-arg
818
+
// Valid argument.
819
+
argsCh<-arg
820
820
}(arg)
821
821
}
822
822
823
823
wg.Wait()
824
-
close(errArgsValidationCh)
825
-
close(validArgsCh)
824
+
close(errCh)
825
+
close(argsCh)
826
826
827
-
// Log all the errors
828
-
iflen(errArgsValidationCh) >0 {
827
+
// Log all the errors.
828
+
iflen(errCh) >0 {
829
829
ctx.Err.Printf("Invalid arguments passed to ensure -update:\n\n")
0 commit comments