Check your version before submitting the bug
0.4.3
Describe the bug
The command cargo install git-trim crash at the end of the build.
To Reproduce
RUST_BACKTRACE=1 cargo install git-trim
Expected behavior
The binary is successfully build and installed
Actual behaviour
Here is the log with RUST_BACKTRACE=1 :
> RUST_BACKTRACE=1 cargo install git-trim
...
Compiling git2 v0.14.4
Compiling git-trim v0.4.3
error: failed to run custom build command for `git-trim v0.4.3`
Caused by:
process didn't exit successfully: `/var/folders/8t/fn6f5ynj3dj7yx3mjjxk9chr0000gn/T/cargo-installPUSl6j/release/build/git-trim-953d228f62e54d6a/build-script-build` (exit status: 101)
--- stderr
thread 'main' panicked at 'Unable to generate the cargo keys!: could not find repository from '~/.cargo/registry/src/github.com-1ecc6299db9ec823/git-trim-0.4.3'; class=Repository (6); code=NotFound (-3)', ~/.cargo/registry/src/github.com-1ecc6299db9ec823/git-trim-0.4.3/build.rs:5:31
stack backtrace:
0: rust_begin_unwind
at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/panicking.rs:575:5
1: core::panicking::panic_fmt
at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/core/src/panicking.rs:65:14
2: core::result::unwrap_failed
at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/core/src/result.rs:1791:5
3: core::result::Result<T,E>::expect
4: build_script_build::main
5: core::ops::function::FnOnce::call_once
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: failed to compile `git-trim v0.4.3`, intermediate artifacts can be found at `/var/folders/8t/fn6f5ynj3dj7yx3mjjxk9chr0000gn/T/cargo-installPUSl6j`
Additional context and logs & dumps if necessary
You should remove sensitive informations before put them here.
OS -> Mac OS Ventura 13.1 on Apple chip M1
Version -> git-trim v0.4.3
Rust version
❯ rustup show
Default host: aarch64-apple-darwin
rustup home: ~/.rustup
Check your version before submitting the bug 0.4.3
Describe the bug The command
cargo install git-trim
crash at the end of the build.To Reproduce RUST_BACKTRACE=1 cargo install git-trim
Expected behavior The binary is successfully build and installed
Actual behaviour Here is the log with RUST_BACKTRACE=1 :
Additional context and logs & dumps if necessary You should remove sensitive informations before put them here.
installed toolchains
stable-aarch64-apple-darwin (default) nightly-aarch64-apple-darwin 1.56.0-aarch64-apple-darwin 1.57.0-aarch64-apple-darwin 1.58.1-aarch64-apple-darwin
active toolchain
stable-aarch64-apple-darwin (default) rustc 1.66.0 (69f9c33d7 2022-12-12)