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)

Most upvoted comments

@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.1 installed, with a few extra steps:

❯ brew update
fatal: Couldn't find remote ref refs/heads/master
Error: Fetching /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/drewwyatt/homebrew-tap failed!
❯ brew unstop dreww/att/tap
Error: Unknown command: unstop
❯ brew untap dreww/att/tap
Error: Invalid tap name 'dreww/att/tap'
❯ brew tap drewwyatt/tap
❯ brew upgrade
❯ brew upgrade --force --fetch-HEAD git-tidy
Warning: drewwyatt/tap/git-tidy 1.0.0 already installed
❯ brew untap drewwyatt/tap
Error: Refusing to untap drewwyatt/tap because it contains the following installed formulae or casks:
git-tidy
❯ brew remove git-tidy
Uninstalling /home/linuxbrew/.linuxbrew/Cellar/git-tidy/1.0.0... (5 files, 3.8MB)
❯ brew untap drewwyatt/tap
Untapping drewwyatt/tap...
Untapped 2 formulae (58 files, 230.9KB).
❯ brew tap drewwyatt/tap
==> Tapping drewwyatt/tap
Cloning into '/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/drewwyatt/homebrew-tap'...
remote: Enumerating objects: 61, done.
remote: Counting objects: 100% (17/17), done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 61 (delta 1), reused 17 (delta 1), pack-reused 44
Unpacking objects: 100% (61/61), done.
Tapped 1 formula (74 files, 296.6KB).
❯ brew install git-tidy
==> Installing git-tidy from drewwyatt/tap
==> Downloading https://github.com/drewwyatt/homebrew-tap/releases/download/git-tidy-2.0.1/git-tidy-2.0.1.x86_64_linux.bottle.t
==> Downloading from https://github-releases.githubusercontent.com/181093375/fcfb20ed-fde1-436e-a7a6-ceb94eb86c63?X-Amz-Algorit
######################################################################## 100.0%
==> Pouring git-tidy-2.0.1.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/git-tidy/2.0.1: 7 files, 3MB
Removing: /home/alex/.cache/Homebrew/git-tidy--1.0.0.tar.gz... (8.0KB)
❯ git-tidy --version
git-tidy 2.0.1

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! ❤️)