x/pkgsite: test files with build errors should not inhibit documentation #48590
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
pkgsite
Milestone
What is the URL of the page with the issue?
https://pkg.go.dev/github.com/bcmills/more@v0.0.0-20210923162553-f9db90522ad1
What is your user agent?
N/A
Screenshot
What did you do?
Commit a package with a
_test.go
source file that fails to type-check with the current Go release (Go 1.17).What did you expect to see?
Documentation for the package API, since a broken test file doesn't prevent downstream users from building or using the exported API.
(And, even if the non-test the package can't be analyzed at all due to a build error, I would rather see an entry in the Directories listing with a description of that build error, rather than silently dropping the package from the listing!)
What did you see instead?
No documentation is shown at all for the directory with the bad test file.
(https://github.com/bcmills/more/blob/f9db90522ad116a76b5b750ac7094f01ba5d220d/morebytes/file_fuzz_test.go)
The text was updated successfully, but these errors were encountered: