commit | 9ffe8b928e4fbd3ff7dcf984254629a47f8b6e63 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Tue Jun 14 06:40:49 2022 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Tue Jun 14 14:00:03 2022 +0000 |
tree | e4baa8bdc36a2d642c677f7bd120f471d3026679 | |
parent | 2de536ebca9d4d8ce652f3326158a7b62e8238a2 [diff] |
cmd/pkgsite: ignore indirect modules When `go list -m` lists an indirect module, there is no GoMod path. This was confusing the pkgsite command, because it assumed there was one. Since `go list` doesn't provide enough information to serve indirect modules, ignore them. Fixes golang/go#53323 Change-Id: I0ff9658ee286b2f11dabf76d1bf5f65a9c16ed42 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/412058 Run-TryBot: Jonathan Amsterdam <jba@google.com> Reviewed-by: Jamal Carvalho <jamal@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.
Pkgsite requires Go 1.18 to run. The last commit that works with older versions of Go is 4d836c6a652cde92f433967680dfd6171a91ec12.
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 pkg.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.