Skip to content

cmd/go: "downloading" message is misleading when GOPROXY points to a local directory #64853

@bsiegert

Description

@bsiegert

Go version

go version go1.21.5 netbsd/amd64

What operating system and processor architecture are you using (go env)?

GO111MODULE=on
GOPATH=${WRKDIR}/.gopath
GOPROXY=file://${WRKDIR}/.goproxy
GOARCH="amd64"
GOHOSTOS="netbsd"
GOOS="netbsd"

What did you do?

When building packages in pkgsrc (as in other similar systems), there is a rule that there should be no downloads during the build. Instead, all downloads are in a separate phase, with checksumming.

During the build, we set GOPROXY to a file URL, as per above.

What did you expect to see?

Any accesses to the "proxy" (which, again, is a local directory) still show a message like

go: downloading golang.org/x/tools v0.14.1-0.20231114185516-c9d3e7de13fd

What did you see instead?

I would not expect a message saying "downloading" when using a file URL. Maybe "using" or "accessing" would be better in this case.

See http://mail-index.netbsd.org/tech-pkg/2023/12/23/msg028661.html for a thread where someone was genuinely confused, thinking the message means modules are being downloaded over the network.

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