]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modfetch: filter pseudo-versions from proxy /list endpoints
authorBryan C. Mills <bcmills@google.com>
Fri, 21 Jun 2019 19:13:10 +0000 (15:13 -0400)
committerBryan C. Mills <bcmills@google.com>
Tue, 25 Jun 2019 13:27:20 +0000 (13:27 +0000)
commit19690053606dd14dedcf028bb37df79e3e33c003
tree416509349d9c604e0f08bb15f5c9dd052323eac6
parente28f0d92991e60ac3174b2ebf224f37be22c8fad
cmd/go/internal/modfetch: filter pseudo-versions from proxy /list endpoints

The /list files in the module cache include pseudo-versions, but the
documentation for (*modfetch).Repo.Versions explicitly states that
they are not included in the output of that method.

Fixes #32715

Change-Id: Ieba1500b91f52b5fa689e70e16dbe3ad40de20f7
Reviewed-on: https://go-review.googlesource.com/c/go/+/183402
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/modfetch/proxy.go
src/cmd/go/testdata/mod/github.com_dmitshur-test_modtest5_v0.0.0-20190619020302-197a620e0c9a.txt [new file with mode: 0644]
src/cmd/go/testdata/mod/github.com_dmitshur-test_modtest5_v0.5.0-alpha.0.20190619023908-3da23a9deb9e.txt [new file with mode: 0644]
src/cmd/go/testdata/mod/github.com_dmitshur-test_modtest5_v0.5.0-alpha.txt [new file with mode: 0644]
src/cmd/go/testdata/script/mod_list_pseudo.txt [new file with mode: 0644]