Trying to update jujutsu I had a heck of a time. A previously working command stopped working. Running in a different directory, updating rust neither worked. The issue is this commit in the jujutsu repo.
The symptom is:
matthew@ZenTower:~$ cargo binstall --strategies crate-meta-data jj-cli
WARN Failed to retrieve token from `gh auth token` err=Os { code: 2, kind: NotFound, message: "No such file or directory" }
WARN Failed to read git credential file
INFO resolve: Resolving package: 'jj-cli'
ERROR Fatal error:
× For crate jj-cli: Failed to parse cargo manifest: TOML parse error at line 49, column 12
│ |
│ 49 | resolver = "3"
│ | ^^^
│ unknown variant `3`, expected `1` or `2`
│
├─▶ Failed to parse cargo manifest: TOML parse error at line 49, column 12
│ |
│ 49 | resolver = "3"
│ | ^^^
│ unknown variant `3`, expected `1` or `2`
│
├─▶ TOML parse error at line 49, column 12
│ |
│ 49 | resolver = "3"
│ | ^^^
│ unknown variant `3`, expected `1` or `2`
│
╰─▶ TOML parse error at line 49, column 12
|
49 | resolver = "3"
| ^^^
unknown variant `3`, expected `1` or `2`
It turns out the one thing I didn’t update was cargo-binstall
, so cargo install cargo-binstall
to update fixed this.