commit | a3a009e12ea183c9e6e1abd028f5e091c9fb2601 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Tue Apr 12 06:19:49 2022 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Tue Apr 12 13:32:49 2022 +0000 |
tree | dba7037391c14545f91327a97897729c81579fa4 | |
parent | 8ea409f829091208d2d0ba4d81ecbe83b0fee9bb [diff] |
internal/fetch: make too many packages a ModuleTooLarge error If a module has too many packages, we were returning an error with no code, so the worker was returning 500 and we would retry the module. This led to a glut of large modules, swamping the worker. This CL returns a ModuleTooLarge error in that case, which will avoid reprocessing. Change-Id: Iaafa2a790278d1339d5ce49fd6ef2d0ee57d48e6 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/399365 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.
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.