commit | d30812f77f37da9f96dffe5b3af834ab4f86031e | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Thu Sep 02 15:41:19 2021 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Fri Sep 03 11:31:59 2021 +0000 |
tree | ca6dcdd26c58d800963c5ddd9f7559b79f5613b3 | |
parent | 14f46d456f127e7a84f0fa79852bb2587be7a656 [diff] |
internal/stdlib: refactor getGoRepo, add clone tests Refactor getGoRepo to handle both test and cloned repos. This will enable adding a third option, getting the Go repo from a local copy. Also add a test for checking the contents of a cloned repo, to make sure the clone logic is correct. Flag-protect it because it's slow and hits an external server. Change-Id: I9de50bf12fccbd4fa35aa0566bdee3cddb25edf8 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/347403 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jamal Carvalho <jamal@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.