commit | f4073fdff0bfeacd0dcc909bce67268393f55870 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Thu Aug 19 05:24:04 2021 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Thu Aug 19 16:18:05 2021 +0000 |
tree | df5b2c12f083d8b50aa96874b47b222b78537606 | |
parent | 9042f5bd800b978176e6026fb17e5410ce4aeaac [diff] |
internal/fetch: a directoryModuleGetter knows its module path A correctly configured directoryModuleGetter knows the module path it is serving, and returns NotFound for any others. This will enable trying multiple ModuleGetters when looking for a path. For golang/go#47780 Change-Id: Ib33bd3d7e222ff048ae8a35843df43219e9d844b Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/343590 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
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.