}
lookup.Do(10, func(item interface{}) {
t := item.(*task)
+ if t.vers == "none" {
+ // Wait for downgrade step.
+ t.m = module.Version{Path: t.path, Version: "none"}
+ return
+ }
m, err := getQuery(t.path, t.vers, t.forceModulePath)
if err != nil {
base.Errorf("go get %v: %v", t.arg, err)
return
}
t.m = m
- if t.vers == "none" {
- // Wait for downgrade step.
- return
- }
// If there is no -u, then we don't need to upgrade the
// collected requirements separately from the overall
// recalculation of the build list (modload.ReloadBuildList below),
env GO111MODULE=on
-go get rsc.io/quote@v2.0.0
+# downgrade sampler should downgrade quote
+go get rsc.io/sampler@v1.0.0
go list -m all
-stdout 'rsc.io/quote v0.0.0-'
+stdout 'rsc.io/quote v1.4.0'
+stdout 'rsc.io/sampler v1.0.0'
+
+# downgrade sampler away should downgrade quote further
+go get rsc.io/sampler@none
+go list -m all
+stdout 'rsc.io/quote v1.3.0'
-- go.mod --
module x