cmd/cgo: inconsistency between package documentation and actual command line flags #69730
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
Documentation
Issues describing a change to documentation.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go1.23 and go tip
Output of
go env
in your module/workspace:What did you do?
Viewed documentation at https://pkg.go.dev/cmd/cgo@master and https://pkg.go.dev/cmd/cgo.
What did you see happen?
In the "Using cgo directly" section, the last flag mentioned is
-srcdir
, but it doesn't have a description like the rest of the flags:(It looks like that truncation happened in 840f2c1).
Running
gotip tool cgo -help
on my machine, I see different flag descriptions:The
-trimpath
flag isn't in the package documentation, and the package documentation has a better description for-objdir
. Some other flags show up in a different order (-import*
then-gcc*
in package docs, vice versa for CLI); I didn't spend time to exhaustively check which other flags were inconsistent between the actual help output and the package docs.What did you expect to see?
Same flags in the package docs as from the command line.
The text was updated successfully, but these errors were encountered: