]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modload: handle NotExist errors in (*mvsReqs).Previous
authorBryan C. Mills <bcmills@google.com>
Thu, 29 Oct 2020 20:36:50 +0000 (16:36 -0400)
committerBryan C. Mills <bcmills@google.com>
Fri, 30 Oct 2020 18:06:13 +0000 (18:06 +0000)
commit6d087c807e558a7e4f7da29fd44998e6f605c27d
treed12827ab5a648dcdcbf25d4d60b73a258c2f71f0
parent8494a6243ee5c80da51da8f4e1ad4d719eddf409
cmd/go/internal/modload: handle NotExist errors in (*mvsReqs).Previous

Previous is used during downgrading. If the module proxy does not
advertise any versions (for example, because it contains only
pseudo-versions), then Previous should return "none" instead of a
non-nil error.

For #37438

Change-Id: I4edfec19cfeb3ffe50df4979f99a01321c442509
Reviewed-on: https://go-review.googlesource.com/c/go/+/266370
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/go/internal/modload/mvs.go