-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Open
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.GoCommandcmd/gocmd/goNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.website
Milestone
Description
The documentation of go list -m
currently says:
"If no arguments are specified, the main module is listed."
This is incorrect, since, when workspace mode is enabled, go list -m
lists all the active main modules.
Here is an example:
$ go list -m -json
{
"Path": "xxx",
"Main": true,
"Dir": "/tmp/src/xxx",
"GoMod": "/tmp/src/xxx/go.mod",
"GoVersion": "1.18"
}
{
"Path": "yyy",
"Main": true,
"Dir": "/tmp/src/yyy",
"GoMod": "/tmp/src/yyy/go.mod",
"GoVersion": "1.18"
}
{
"Path": "zzz",
"Main": true,
"Dir": "/tmp/src/zzz",
"GoMod": "/tmp/src/zzz/go.mod",
"GoVersion": "1.18"
}
Metadata
Metadata
Assignees
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.GoCommandcmd/gocmd/goNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.website