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

better API for generating artifact from tarball URL #1950

Closed
simeonschaub opened this issue Aug 9, 2020 · 1 comment
Closed

better API for generating artifact from tarball URL #1950

simeonschaub opened this issue Aug 9, 2020 · 1 comment

Comments

@simeonschaub
Copy link
Member

simeonschaub commented Aug 9, 2020

It would be nice to have a function like

add_artifact!(artifact_toml::String, name::String, tarball_url::String; platform=nothing, lazy=false)

in Pkg.Artifacts, which would automatically download a tarball from url, generate all the needed hashes, and add an artifact with the given name to artifact_toml, optionally specifying a specific platform and whether the artifact should be lazy. BinaryBuilder already does all this, but I think it would be a pretty nice QOL improvement for shipping artifacts independent of BinaryBuilder.

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

Successfully merging a pull request may close this issue.

3 participants