Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/fetch: report DocTooLarge error in goPackage.err
loadPackage has two return values: a *goPackage and an error. Before this CL, if a package's documentation was too large, loadPackage would return the package and a non-nil error. With this CL, that error is stored in the goPackage struct in a new field, and loadPackage returns a nil error. Aside from being more idiomatic, this change will enable future changes needed to support multiple GOOS/GOARCH combinations. For golang/go#37232 Change-Id: If73adde76239046eb22409659d6795c09bbb1fd4 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/279457 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>
- Loading branch information
Showing
2 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters