commit | 85fcaf0caf47a42536e309335a016e69a60ed6c8 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Fri Aug 06 15:58:01 2021 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Thu Aug 12 19:42:51 2021 +0000 |
tree | d1c8ccc082ca03dbf10ba3511a13fc1955faadbd | |
parent | 80022c81ae058277d4fad188db145b764b8180f2 [diff] |
internal/worker: on fetch, hit proxy info first Ask the proxy for info on the requested module version before doing anything else, even computing the latest versions. This will make the proxy aware of the version if it isn't already. This prevents the failure mode described in the linked issue: the user does frontend fetch on a new, latest version before the proxy sees it, so the latest-version info doesn't know about it. For golang/go#46985 Change-Id: I681da5404cea2d391836d876ac807b714ce88f90 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/340123 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org> Reviewed-by: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com>
Pkg.go.dev is a website for discovering and evaluating Go packages and modules.
You can check it out at https://pkg.go.dev.
If you want to report a bug or have a feature suggestion, please first check the known issues to see if your issue is already being discussed. If an issue does not already exist, feel free to file an issue.
For answers to frequently asked questions, see go.dev/about.
You can also chat with us on the #pkgsite Slack channel on the Gophers Slack.
We would love your help!
Our canonical Git repository is located at go.googlesource.com/pkgsite. There is a mirror of the repository at github.com/golang/pkgsite.
To contribute, please read our contributing guide.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.