commit | 037582b9f5929b49db77f9b35b599a4ea5d847ac | [log] [tgz] |
---|---|---|
author | Julie Qiu <julie@golang.org> | Thu Aug 19 12:25:38 2021 -0400 |
committer | Julie Qiu <julie@golang.org> | Thu Aug 19 19:20:01 2021 +0000 |
tree | df6b002e8fd658939fa4d49575727db316f4d8b6 | |
parent | c29b3f10e4b5684df2407e45459354f4717fa1f1 [diff] |
internal/frontend: fix redirects The go command removes build metadata as part of version canonicalization. +incompatible is the only metadata that may remain, but that can't appear in the vcs tag itself. As a result, a path@version like https://pkg.go.dev/github.com/go-logr/zapr@v1.0.0+1 will resolve to https://pkg.go.dev/github.com/go-logr/zapr@v1.0.1-0.20210809170106-a3325063a237. See https://proxy.golang.org/github.com/go-logr/zapr/@v/v1.0.0+1.info pkg.go.dev now redirects appropriately. See https://groups.google.com/g/golang-dev/c/bduZuUdzM_o/m/lBX634unAQAJ for context. This fix also redirects other cases where the requested and resolved versions do not match. For example, github.com/dgrijalva/jwt-go@v3.2.0 will redirect to v3.2.0+incompatible. For golang/go#47757 Change-Id: I236fbb9e0ed8ef0b1c3928460c2908fcbd9c2033 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/343631 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jonathan Amsterdam <jba@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.