Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: for go mod download, -dir option does not exist #27243
What version of Go are you using (
Seems like a genuine oversight. There seems to be only the json flag for download. https://github.com/golang/go/blob/master/src/cmd/go/internal/modcmd/download.go#L50.