-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Support installation via github-release API #4
Comments
See this issue: cargo-bins/cargo-quickinstall#27 Quick Install is a hosted repo of built crates, essentially. The approach I've taken here is a list of strategies: 1. First, we check the crate meta or default and build the URL to the repo. Once we have that, we perform a `HEAD` request to the URL to see if it's available. 2. If it's not, we build the URL to the quickinstall repo, and perform a `HEAD` to there. As soon as we've got a hit, we use that. I've built it so it's extensible with more strategies. This could be useful for #4. This also adds a prompt before downloading from third-party sources, and logs a short name for a source, which is easier to glance than a full URL, and includes a quick refactor of the install/link machinery.
More discussion / context that was misplaced into #18: ryan:
passcod:
ryan:
|
I agree with @passcod this seems to be well covered by quickinstall and my opinion for a tooling like Yes @passcod I agree that there could be "the default settings" and configs are just an overwrite, but for this case I believe there needs to be more done on the side of examples on how to provide binaries in todos or tooling (working on a gh action to build and upload binaries in a default setting for x targets in a other project) I see the bias on |
One problem with this approach is that we cannot obtain the |
the releases API provides a list of assets, which we could also use in #295, so it'd basically just be skipping a discovery step |
So the releases API is only used to speedup the existing process, but does not add any new feature, such as installing unpublished crates that are available on github-release? |
Yes, that makes a lot more sense, I think. With #3 we'll still want to read the Cargo.toml from the repo, which covers the unpublished crate usecase. Installing from random repos that happen to have artifacts in... some kind of format... is a bit too far I think. |
Hmm I think that's done now. |
This is somewhat different to existing mechanisms that pull the crate and metadata first, however, it should be possible to:
Not sure how this interacts with signing / where one would expect the signing key to be in this case.
The text was updated successfully, but these errors were encountered: