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

Download proton as zip #21

Closed
wants to merge 2 commits into from
Closed

Download proton as zip #21

wants to merge 2 commits into from

Conversation

emirotin
Copy link
Contributor

At resin.io we build apps in the cloud. For me the git clone step has been hanging several times, and was really slow overall. Also it feels like it's a significant overhead to fetch the repo with all embedded info, as well as the git itself is big compared to unzip.

So I've updated the script to fetch the same sources (but without the extra git history and everything) as a ZIP.

I've also noticed that proton doesn't build without Java so I've added the JRE dependency.

// original PR https://github.com/Azure/azure-iot-suite-sdks/pull/59

cd /tmp
curl -L $proton_repo/archive/$proton_branch.zip -o proton.zip
mkdir proton
unzip proton.zip -d proton
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This script handles the general case, and it's a convenience for users--it's not a required step to build the project. I don't see a strong reason for changing git to unzip here. In specialized scenarios the script can be customized; changes wouldn't have to be contributed back.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I explained my reasoning for this proposed change: it still handles the same general case, but does it faster with less overhead. Obviously it's up to you to ignore it.

@damonbarry
Copy link
Member

Manually merged to develop. Thanks!

@damonbarry damonbarry closed this Oct 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants