Closed patryk-s closed 2 years ago
Actually, not brew related -- same thing for locked cargo install:
$ cargo install --locked gfold
Updating crates.io index
Installing gfold v4.0.0
error: failed to select a version for the requirement `libgit2-sys = "^0.13.3"`
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.3`
... which satisfies dependency `git2 = "^0"` (locked to 0.14.3) of package `gfold v4.0.0`
@patryk-s I noticed the issue has been closed. What was the solution to your problem? Perhaps, I can use the solution in documentation or the homebrew formula.
Sorry, closed it by mistake.
no idea why, but running this helps (this is after fetching the 4.0.0.tgz
)
$ cargo update
Updating crates.io index
Updating git2 v0.14.3 -> v0.14.2
Updating libgit2-sys v0.13.3+1.4.2 -> v0.13.2+1.4.2
$ cargo check
Compiling libc v0.2.125
Compiling proc-macro2 v1.0.38
Checking cfg-if v1.0.0
Compiling autocfg v1.1.0
Compiling unicode-xid v0.2.3
[...]
Checking git2 v0.14.2
Checking toml v0.5.9
Checking gfold v4.0.0 (/Users/ps/git/gfold-4.0.0)
Finished dev [unoptimized + debuginfo] target(s) in 11.31s
I mean, helps with building from source, not for brew install
.
I suspect an underlying crate was yanked. I'll investigate.
Good catch @patryk-s. I'll publish a patch release with a newer version of git2-rs
.
Upgrading fails via
brew
on macOS 12.13.1 (M1)Also, that last link for reporting issues does not work -- issues are turned off for that repo.