cargo-edit-locally icon indicating copy to clipboard operation
cargo-edit-locally copied to clipboard

Doesn't build

Open ctrlcctrlv opened this issue 3 years ago • 3 comments

:!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

ctrlcctrlv avatar Apr 07 '21 09:04 ctrlcctrlv

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/.

ctrlcctrlv avatar Apr 07 '21 09:04 ctrlcctrlv

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?

ThatGeoGuy avatar Aug 02 '21 19:08 ThatGeoGuy

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

timthelion avatar Dec 28 '21 13:12 timthelion