Skip to content

cmd/go: go mod download needs a --verbose option #38756

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ORESoftware opened this issue Apr 29, 2020 · 10 comments
Closed

cmd/go: go mod download needs a --verbose option #38756

ORESoftware opened this issue Apr 29, 2020 · 10 comments
Labels
FrozenDueToAge modules WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@ORESoftware
Copy link

go version 1.13

#12197

Step 20/32 : RUN go mod download -v
 ---> Running in 06ada58d25d7
flag provided but not defined: -v
usage: go mod download [-json] [modules]
Run 'go help mod download' for details.

@ORESoftware ORESoftware changed the title go mod download needs a --verbose option go mod download needs a --verbose option Apr 29, 2020
@bcmills
Copy link
Contributor

bcmills commented Apr 30, 2020

Please fill out the complete issue template. What information would you expect go mod download -v to print?

@bcmills bcmills added modules WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Apr 30, 2020
@ORESoftware
Copy link
Author

The same info as go install -v :(

@jayconrod
Copy link
Contributor

go install -v prints each package as it's built. go mod download doesn't work with packages, so it can't really do that.

So what would -v mean here? Print each module when it starts downloading? Show a progress bar? Print other metadata about the modules? It would help if you could give an example.

@jayconrod jayconrod added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. and removed WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Apr 30, 2020
@hyangah
Copy link
Contributor

hyangah commented Apr 30, 2020

fyi - there is go mod download -x if you want to know what's happening behind.

@ORESoftware
Copy link
Author

ORESoftware commented Apr 30, 2020

i guess worst case scenario, go mod download -v could be an alias for go mod download -x?
On 1.13, I get this:

$ go mod -x download
> go mod -x: unknown command
> Run 'go help mod' for usage.

and

$ go mod download -x
> flag provided but not defined: -x
> usage: go mod download [-json] [modules]
> Run 'go help mod download' for details.

so on 1.13, go mod -x download and go mod download -x don't work

@jayconrod
Copy link
Contributor

The -x flag was added to go mod download in 1.14 (go mod download -x). Can you try it there and see if it does what you want?

@ORESoftware
Copy link
Author

ORESoftware commented Apr 30, 2020

I am stuck on 1.13 for the moment, unfortunately. but there should be a -v flag for both 1.13+ and 1.14+ pls :)

@jayconrod
Copy link
Contributor

Sorry, our policy is only to backport fixes for security issues, serious problems with no workaround, and documentation fixes. We won't backport -x to 1.13 or 1.14. The freeze for 1.15 begins tomorrow, so there isn't time to add new features for that. So this would be for 1.16 at the earliest.

But we still don't really understand what you want. If you need something different from -x, please say what that is and give an example.

@jayconrod jayconrod changed the title go mod download needs a --verbose option cmd/go: go mod download needs a --verbose option Apr 30, 2020
@ORESoftware
Copy link
Author

Ultimately I was expecting go mod download -v to print much of the same info that go install -v does, that was all.

@jayconrod
Copy link
Contributor

go install -v prints each package as it's built. go mod download doesn't work with packages, so it can't really do that.

All module commands print information about modules being downloaded to stderr by default, so it doesn't seem like there's anything else to do here.

@golang golang locked and limited conversation to collaborators May 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge modules WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

5 participants