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

install-and-setup.md: Document binary installation with cargo-binstall

I also mentioned this in the changelog, since people reading it are more likely
to use `binstall` than most.
This commit is contained in:
Ilya Grigoriev 2023-09-19 22:54:42 -07:00
parent 2cd262def3
commit 38daa9abe3
2 changed files with 15 additions and 0 deletions

View file

@ -52,6 +52,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### New features
* `jj`'s stable release can now be installed with [`cargo binstall jj-cli`](https://github.com/cargo-bins/cargo-binstall).
* `jj workspace add` now takes a `--revision` argument.
* `jj workspace forget` can now forget multiple workspaces at once.

View file

@ -12,6 +12,19 @@ version should work on all distributions).
If you'd like to install a prerelease version, you'll need to use one of the
options below.
#### Cargo BInstall
If you use [`cargo-binstall`](https://github.com/cargo-bins/cargo-binstall), you
can install the same binaries of the last `jj` release from GitHub as follows:
```shell
# Will put the jj binary for the latest release in ~/.cargo/bin by default
cargo binstall --strategy crate-meta-data jj-cli
```
Without the `--strategy` option, you may get equivalent binaries that should be
compiled from the same source code.
### Linux