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

Show upload/download progress #31

Open
Jeehut opened this issue Jan 10, 2017 · 3 comments
Open

Show upload/download progress #31

Jeehut opened this issue Jan 10, 2017 · 3 comments

Comments

@Jeehut
Copy link

Jeehut commented Jan 10, 2017

Sometimes the build folder is quite big (~> 100 MB) and at least in these cases it would be very nice to see upload progress or at least the number of megabytes already uploaded to have some kind of feedback and estimation. Same would be nice on downloads as well, but uploads are usually slower so more useful.

@Jeehut Jeehut changed the title Show upload progress Show upload/download progress Jan 10, 2017
@guidomb
Copy link

guidomb commented Jan 10, 2017

Since the latest release you can tell carthage_cache to always prune unused binaries on publish and also you can specify which platform to use. Since this changes I've seen archive file's size reduces substantially in my projects.

I agree this would be a nice feature to have. I tried to do something similar in another project and could find a way that worked well with ruby so ended up hacking it by calling cURL like curl --progress-bar --data-binary @#{archive_path} -X POST .

I guess you could do something similar to this and try to make it work with AWS S3 API instead of using the gem to upload. Maybe AWS S3 Ruby SDK provides a way to easily implement this, not really sure.

I do agree that this would be really helpful but since I am pretty short on time and upload / download time is not a concern in the projects I am working on I won't prioritize this. I may do it if I find the time but cannot make any promises nor provide an ETA.

That being said I would be more that available for a code review if you want to submit a PR. If you feel like adding this feature, here is where you should make the change.

Let me know if you need any help.

@teddynewell
Copy link

I think the AWS JavaScript API has a way to report upload progress, so might be possible with the Ruby version too.

@teddynewell
Copy link

This SO on reporting S3 upload progress may be relevant. General strategy is to use a multi-part upload by breaking the file into chunks.

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

No branches or pull requests

3 participants