Skip to content

Allow to download artifact#1

Merged
ashleygwilliams merged 1 commit into
drager:masterfrom
xtuc:feat-download-artifact
May 30, 2019
Merged

Allow to download artifact#1
ashleygwilliams merged 1 commit into
drager:masterfrom
xtuc:feat-download-artifact

Conversation

@xtuc
Copy link
Copy Markdown
Contributor

@xtuc xtuc commented May 28, 2019

Extends the API by adding a {download_artifact} function which allows
the installation of releases that don't contain a binary (a Nodejs script
for example).

Make sure these boxes are checked! 📦✅

  • You have the latest version of rustfmt installed
$ rustup component add rustfmt-preview --toolchain nightly
  • You ran cargo fmt on the code base before submitting
  • You reference which issue is being closed in the PR text

✨✨ 😄 Thanks so much for contributing to binary-install! 😄 ✨✨

Extends the API by adding a {download_artifact} function which allows
the installation of releases that don't contain a binary (a Nodejs script
for example).
@xtuc
Copy link
Copy Markdown
Contributor Author

xtuc commented May 28, 2019

It might be possible to refactor the code to reuse more, only the extract_tarball changes. I think it's simpler to duplicated our logic a bit, what do you think?

@ashleygwilliams
Copy link
Copy Markdown
Contributor

@drager do you have any thoughts?

@drager
Copy link
Copy Markdown
Owner

drager commented Jun 2, 2019

@ashleygwilliams @xtuc Sorry for the late response! I agree that it would be a good idea to do some refactoring and break down common parts into smaller functions and add some test as well! This can of course be done in another PR.

@xtuc xtuc deleted the feat-download-artifact branch June 3, 2019 09:09
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.

3 participants