feat: Install via cargo binstall
#583
No reviewers
Labels
No labels
Compat/Breaking
Kind
Bad merge
Kind
Bug
Kind
Documentation
Kind
Enhancement
Kind
Feature
Kind
New language
Kind
Security
Kind
Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: mergiraf/mergiraf#583
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "wetneb/mergiraf:binstall"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It provides an easier way to install crates without compiling them
locally.
cargo binstall
@ -122,0 +123,4 @@
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }_{ target }{ archive-suffix }"
bin-dir = "{ bin }{ binary-ext }"
pkg-fmt = "tgz"
I think this won't work, because our links looks like this:
Whereas, AFAICT from the docs,
pkg-fmt = "tgz"
setsarchive-extension
to.tgz
.But if I try to do that for the link above:
I get a 404.
We should probably specify
archive-suffix = ".tar.gz"
explicitlyI also wondered about it. I tried it with
cargo binstall --manifest-path . mergiraf@0.14.0
and it seemed to work like this, but I'm not opposed to adding it explicitly. We'll probably need to override it for windows then.It looks like
cargo-binstall
does try to ping the.tar.gz
version of the URL after.tgz
fails, so it would eventually get to the correct link, but even during my short experimentation I started getting a bunch of "Too many requests" responses, so I think it's good to be more explicit, to both save time for thecargo-binstall
users, and to avoid annoying Codeberg's servers too much.@ -122,0 +124,4 @@
pkg-url = "{ repo }/releases/download/v{ version }/{ name }_{ target }{ archive-suffix }"
bin-dir = "{ bin }{ binary-ext }"
pkg-fmt = "tgz"
disabled-strategies = ["quick-install", "compile"]
These are shown in the documentation example, but I don't think we really should specify them? WDYT?