cargo-edit-locally
cargo-edit-locally copied to clipboard
Doesn't build
:!cargo install cargo-edit-locally
Compiling fs2 v0.4.3
Compiling num_cpus v1.13.0
Compiling filetime v0.1.15
Compiling idna v0.1.5
Compiling quote v1.0.9
error: failed to run custom build command for `openssl v0.9.24`
Caused by:
process didn't exit successfully: `/tmp/cargo-installzyyDCQ/release/build/openssl-d3c988a78bcc61cb/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Unable to detect OpenSSL version', /home/fred/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-0.9.24/build.rs:16:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-edit-locally v0.1.3`, intermediate artifacts can be found at `/tmp/cargo-installzyyDCQ`
Caused by:
build failed
shell returned 101
Hmm. No idea why this works, but I was able to pull the repo, build, and copy target/debug/cargo-edit-locally
to /home/fred/.cargo/bin/
.
Seems to be a common issue on Ubuntu 20.04 because the OpenSSL crate dependency is vastly out of date. See this thread.
This seems to be the result of a transitive dependency from the curl
and git2
crates. Note that master
no longer has this issue, it's just the version published on crates.io. Can this crate be re-published with a new revision bump since it appears that the fix is already applied on the master
branch?
First time in my life that Debian stable was too new for whatever I wanted to install...
cargo install --git https://github.com/k0nserv/cargo-edit-locally.git
works