martinvonz / jj

A Git-compatible VCS that is both simple and powerful
https://martinvonz.github.io/jj/
Apache License 2.0
8.39k stars 288 forks source link

jj fails to build #422

Closed jvoisin closed 2 years ago

jvoisin commented 2 years ago

It seems that the installation instructions aren't working:

; lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux bookworm/sid
Release:    testing
Codename:   bookworm
; cargo --version
cargo 1.56.0
; ~ rustc --version
rustc 1.59.0
; cargo install --git https://github.com/martinvonz/jj.git --bin jj
    Updating git repository `https://github.com/martinvonz/jj.git`
  Installing jujutsu v0.4.0 (https://github.com/martinvonz/jj.git#40afd987)
    Updating crates.io index
error: failed to compile `jujutsu v0.4.0 (https://github.com/martinvonz/jj.git#40afd987)`, intermediate artifacts can be found at `/tmp/cargo-installWwoEDM`

Caused by:
  failed to select a version for the requirement `libgit2-sys = "^0.13.4"`
  candidate versions found which didn't match: 0.13.2+1.4.2, 0.13.1+1.4.2, 0.13.0+1.4.1, ...
  location searched: crates.io index
  required by package `git2 v0.14.4`
      ... which satisfies dependency `git2 = "^0.14.4"` of package `jujutsu v0.4.0 (/home/jvoisin/.cargo/git/checkouts/jj-1467e3dd78fc324a/40afd98)`
[101]
;
martinvonz commented 2 years ago

Thanks for the report. I can reproduce that with cargo +1.59 install. Try installing at least 1.60 of the toolchain (or at least rustc?).

The MSRV is defined here: https://github.com/martinvonz/jj/blob/40afd987209c9539879872634877e020275d4e15/Cargo.toml#L6 However, https://blog.rust-lang.org/2021/10/21/Rust-1.56.0.html#cargo-rust-version says "This doesn't currently influence the dependency resolver".

jvoisin commented 2 years ago

I'll wait until it trickles down into Debian testing then, thanks :)