New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/website: wrong package synopses on stdlib packages containing programs #45042
Comments
Probably related, the same page now shows pages for |
cc @rsc Perhaps http://golang.org/cl/296378 or one of the other CLs in the stack? The March 10 snapshot of this page at https://web.archive.org/web/*/https://golang.org/pkg/ has the correct descriptions, so it seems recent. |
In all the cases that this is happening, the package documentation synopsis is obtained from a file that has a |
Change https://golang.org/cl/311089 mentions this issue: |
https://golang.org/pkg/ is still showing packages under src/cmd. This issue is not entirely resolved. |
file.Name.Name should match the directory name not the filename. In CL 296378, newDirTree's name parameter was removed and synopsis matched against the filename of the source code, e.g. "*.go". Fixes golang/go#45042 Fixes golang/go#45614 Change-Id: Ifa4c8a70429e277efb1f9f726de9249509cbcee0 Reviewed-on: https://go-review.googlesource.com/c/website/+/311089 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Trust: Cherry Zhang <cherryyz@google.com>
https://golang.org/pkg/ currently shows the wrong package synopses on stdlib packages containing ignore-constrained programs intended for
go run
. E.g., the synopsis on package runtime ismkduff generates duff_*.s.
, on package os/exec isThis is a test program that verifies that it can read from descriptor 3 and that no other descriptors are open.
, &c.The text was updated successfully, but these errors were encountered: