Skip to content
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

cmd/go: progress bar for "go get" #22800

Closed
leonluc opened this issue Nov 18, 2017 · 3 comments
Closed

cmd/go: progress bar for "go get" #22800

leonluc opened this issue Nov 18, 2017 · 3 comments

Comments

@leonluc
Copy link

leonluc commented Nov 18, 2017

Please answer these questions before submitting your issue. Thanks!

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

1.9.2

Does this issue reproduce with the latest release?

yes

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

mac

What did you do?

check by myself( waste sometime)
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.

What did you expect to see?

What did you see instead?

@ALTree
Copy link
Member

ALTree commented Nov 18, 2017

Most go tools are quiet by default, and this is unlikely to change (the idea of adding a progress bar was discussed in the past, several times, see e.g. #17959 #18388).

You can use the -v flag to make the output more verbose, though.

@mvdan
Copy link
Member

mvdan commented Nov 18, 2017

I think more issues like this one aren't helpful unless there is a suggestion on how to implement such progress information - preferably, with a prototype of some sort.

For example, I would imagine that a good amount of the time would be spent in commands like git clone, since some repositories weigh hundreds of megabytes or the user's connection may not be fast. How would go get get the progress information from such a command? And since the go tool also supports svn, hg and bzr, the same should apply to the equivalent command for those.

@mvdan mvdan changed the title when i use "go get" ,i need progress bar cmd/go: progress bar for "go get" Nov 18, 2017
@bradfitz
Copy link
Contributor

As @ALTree said, this is a dup (#17959 #18388). See the comments there. You're welcome to prototype it and it could live as an external tool. Perhaps once it exists, the cmd/go could see if it exists in the $PATH and use it conditionally. Maybe. But first somebody has to prototype. The Go team won't be working on it, sorry.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants