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

Error: No viable remote package found fallback wanted: cargo install #108

Closed
r3h0 opened this issue Mar 26, 2022 · 1 comment · Fixed by #114
Closed

Error: No viable remote package found fallback wanted: cargo install #108

r3h0 opened this issue Mar 26, 2022 · 1 comment · Fixed by #114
Labels
Report: feature request New feature request

Comments

@r3h0
Copy link

r3h0 commented Mar 26, 2022

TL;DR, binstall fails when quickinstall release is missing or when other errors occur. Instead of failing, I'd like a fallback option that tries cargo install before giving up.

Overall this project is really promising! I have a dozen or so changes like this that I want to make to my Dockerfile:

-wget -q https://github.com/watchexec/watchexec/releases/download/cli-v1.18.6/watchexec-1.18.6-x86_64-unknown-linux-musl.tar.xz -O - | tar xJ watchexec-1.18.6-x86_64-unknown-linux-musl/watchexec --strip-components=1
+cargo binstall --no-confirm watchexec --version 1.18.6

However, I've found that several of my packages neither have binstall metadata nor are they cached on https://github.com/alsuren/cargo-quickinstall/releases.

cargo binstall --no-confirm watchexec                 
14:57:13 [INFO] Installing package: 'watchexec'
14:57:13 [INFO] Checking for package at: 'https://github.com/watchexec/watchexec/releases/download/v1.17.1/watchexec-x86_64-unknown-linux-gnu-v1.17.1.tgz'
14:57:14 [INFO] Sending installation report to quickinstall (anonymous)
14:57:15 [INFO] Checking for package at: 'https://github.com/alsuren/cargo-quickinstall/releases/download/watchexec-1.17.1-x86_64-unknown-linux-gnu/watchexec-1.17.1-x86_64-unknown-linux-gnu.tar.gz'
14:57:16 [ERROR] File does not exist remotely, cannot proceed
Error: No viable remote package found

For context, here's the cargo-quickinstall docs:

If we don't have a pre-compiled version, it will fallback to cargo install automatically.

Does binstall intentionally lack that behavior? If so, it might be nice to have a note about that on the README; I expected a fallback, considering this project's relationship to quickinstall. If not, consider this a feature request.

@passcod
Copy link
Member

passcod commented Mar 26, 2022

Yes, it's planned. But good to have an issue just for it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Report: feature request New feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants