git-tidy: cargo installation is failing
Hello!
First things first, THANK YOU SO MUCH for this excellent tool. I use it all the time.
I was trying to install the newer rust-based version of git-tidy and I’m hitting this issue:
▪ cargo install git-tidy
Updating crates.io index
Installing git-tidy v2.0.1
error: failed to compile `git-tidy v2.0.1`, intermediate artifacts can be found at `/tmp/cargo-installgtcftB`
Caused by:
failed to select a version for the requirement `zeroize = "^0.9.3"`
candidate versions found which didn't match: 1.3.0, 1.2.0, 1.1.1, ...
location searched: crates.io index
required by package `dialoguer v0.7.1`
... which is depended on by `git-tidy v2.0.1`
My rust is pretty poor. I’d love to help, but I don’t have the skills. 😃
I’m strongly guessing that a newer version of dialoguer will solve the issue, but I genuinely don’t know. (If this were python, I could help, but I haven’t messed with rust at all.)
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 4
- Comments: 17 (8 by maintainers)
@alexfornuto so, i never got back to this 😬 . The good(?) news is that the homebrew version and the cargo version are functionally equivilant. The cargo version is (as you might expect) written in Rust, and the homebrew version is the previous version i wrote in Go. They both do exactly the same thing, though so installing from homebrew won’t (yet) cause you to miss out on any features.
Here’s hoping this update gets through, GitHub is currently having problems.
For context, the system I’m using is Debian Linux. I was able to get
2.0.1installed, with a few extra steps:I can absolutely use the homebrew solution. I’m just trying to help with feedback and bug reports.
I searched around and others needed to upgrade dialoguer. https://github.com/sdttttt/gcr/issues/63 I didn’t see anything else and certainly nothing that pointed at apple-silicon.
@alexfornuto @woodm1979 🤔 weeeeeiiiiird.
I wasn’t able to get the home-brew tap updated this weekend but I promise to do my best to get that knocked out tonight or tomorrow evening. Is home-brew a viable option for both of you?
Well, now I feel a jerk for not also saying, it but at the time I hadn’t yet installed your wonderful tool. Now I’m on the older version from Brew, and can echo the thanks for making it.
@woodm1979 AH! Somehow I missed the notification when you originally posted this. @alexfornuto thank you for commenting to put this back in my inbox. I’ll try to take a look this weekend!
(thank you for the kind words! ❤️)