Skip to content

cmd/go: 'go mod download $(go list -m)' fails silently #28338

@JohnTitor

Description

@JohnTitor

What version of Go are you using (go version)?

go1.11 windows/amd64

Does this issue reproduce with the latest release?

Yes

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

Windows 10, amd64

What did you do?

go mod download doesn't work well when go mod init without version.
(If you run go mod download something.com/something@latest, doesn't work well too.)

What did you expect to see?

Display message (e.g. go mod init: must be set version)

What did you see instead?

Nothing.
Displaying no message isn't user-friendly I think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions