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: go get download progress and download speed status #15959

Open
prithvi16 opened this Issue Jun 5, 2016 · 8 comments

Comments

Projects
None yet
9 participants
@prithvi16
Copy link

prithvi16 commented Jun 5, 2016

go 1.6
linux_amd_64

problem

go get is an awesome tool download and install repositories from websites. But the problem is many times due bad internet connection or varying internet speed or a large repository it takes a lot of time.All we can do is look at blinking the cursor and there is no way to know how much code has been downloaded or is it installing or downloading .

feature request

I would like to request this feature of percentage of completed download and download speed status
in go get tool. It will be very helpful for gophers with slow internet access.

@dlsniper

This comment has been minimized.

Copy link
Contributor

dlsniper commented Jun 5, 2016

I would also like this to have a switch to enable machine readable progress so that other apps can read it and display it. Thank you.

@ianlancetaylor ianlancetaylor changed the title cmd/get : (feature request) download progress and download speed status cmd/go : (feature request) go get download progress and download speed status Jun 5, 2016

@ianlancetaylor ianlancetaylor changed the title cmd/go : (feature request) go get download progress and download speed status cmd/go: (feature request) go get download progress and download speed status Jun 5, 2016

@ianlancetaylor ianlancetaylor added this to the Unplanned milestone Jun 5, 2016

@adg adg changed the title cmd/go: (feature request) go get download progress and download speed status cmd/go: go get download progress and download speed status Jun 5, 2016

@adg

This comment has been minimized.

Copy link
Contributor

adg commented Jun 5, 2016

Seems hard to do, considering we shell out to git, hg, svn, etc to do the actual file transfers.

go get -v might give you enough information to see what's happening.

@prithvi16

This comment has been minimized.

Copy link
Author

prithvi16 commented Jun 6, 2016

most of the time we only use GitHub i.e. git. Can't we use git's built-in progress status ?
for ex. git clone command

@PaluMacil

This comment has been minimized.

Copy link

PaluMacil commented Jun 8, 2016

For git you'll want to use --progress when not using a terminal. -v isn't necessary since it doesn't affect the progress output...

--progress

Progress status is reported on the standard error stream by default when it is attached to a terminal, unless -q is specified. This flag forces progress status even if the standard error stream is not directed to a terminal.

I'd be a little concerned that this would be confusing if not provided in the other supported systems, but then I actually didn't realize till now that you actually could use hg, svn etc, so perhaps if you're using those you also know to look for some inconsistencies as the masses swarm git.

@dchapes

This comment has been minimized.

Copy link

dchapes commented Jun 8, 2016

For git you'll want to use --progress when not using a terminal

For reference, with mercurial the same thing would be something like --config progress.assume-tty=true (this would still respect any progress.disable=true that might be in an hg config file).

@FrankFang

This comment has been minimized.

Copy link

FrankFang commented May 31, 2018

go get -v does not provide enough progress information

@GongT

This comment has been minimized.

Copy link

GongT commented Jul 19, 2018

git's original output is super important to debug proxy issue.

It's not only a "progress".

@anacrolix

This comment has been minimized.

Copy link
Contributor

anacrolix commented Jan 22, 2019

Make another flag for progress. Stop lumping all this behaviour onto a single flag, it just ends in bikeshedding about what constitutes verbosity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.