ok/jj
1
0
Fork 0
forked from mirrors/jj

cargo: make jj installable with cargo binstall

https://github.com/cargo-bins/cargo-binstall

Note that `jj` will only become installable once the next release
is published to crates.io. For this reason, I am planning to
wait until then before documenting the fact that `jj` can be
installed this way.

At that point, `cargo binstall jj-cli` should be sufficient.

Before then, it's possible to test that this will work by doing

```
cargo binstall jj-cli --force --strategies crate-meta-data --log-level debug  --dry-run --manifest-path cli/Cargo.toml
``` 

Without --dry-run, this should install the 0.9 release if run
on `cli/Cargo.toml` form this commit.
This commit is contained in:
Ilya Grigoriev 2023-09-19 22:54:42 -07:00
parent d79e8293aa
commit 86767e47d7

View file

@ -84,3 +84,8 @@ packaging = []
test-fakes = [] test-fakes = []
vendored-openssl = ["git2/vendored-openssl", "jj-lib/vendored-openssl"] vendored-openssl = ["git2/vendored-openssl", "jj-lib/vendored-openssl"]
watchman = ["jj-lib/watchman"] watchman = ["jj-lib/watchman"]
[package.metadata.binstall]
# The archive name is jj, not jj-cli. Also, `cargo binstall` gets
# confused by the `v` before versions in archive name.
pkg-url="{ repo }/releases/download/v{ version }/jj-v{ version }-{ target }.{ archive-format }"