Skip to content

cmd/go: add better logging for go mod vendor #51446

@rittneje

Description

@rittneje

Today when we run go mod vendor, we only get a single message printed to stderr per dependency that looks like go: downloading golang.org/x/text v0.3.7.

This does not tell us when the package finished downloading, which is especially important when trying to diagnose why go mod vendor is slow. (Since go mod vendor seems to download lots of stuff in parallel, we cannot just go by the next log line.)

It also does not tell us which particular proxy in the GOPROXY list was used, which is again important for troubleshooting.

Please add the aforementioned logs, perhaps via some -verbose flag or similar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GoCommandcmd/goNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.modules

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions