Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime: complete rev hash #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

FlorianFranzen
Copy link

@FlorianFranzen FlorianFranzen commented Oct 26, 2022

I am currently unable to build the project do to the following error:

error: failed to run custom build command for `cargo-libafl v0.1.8 (.../cargo-libafl/cargo-libafl)`

Caused by:
  process didn't exit successfully: `.../cargo-libafl/target/release/build/cargo-libafl-1248d1c4679292ec/build-script-build` (exit status: 101)
  --- stdout
  cargo:rustc-env=TARGET=x86_64-unknown-linux-gnu
  cargo:rerun-if-changed=build.rs
  cargo:rerun-if-changed=cargo-libafl-runtime/runtime.rs
  cargo:rerun-if-changed=cargo-libafl-runtime/Cargo.toml

  --- stderr
      Updating crates.io index
      Updating git repository `https://github.com/AFLplusplus/LibAFL.git`
  error: failed to get `libafl` as a dependency of package `cargo-libafl-runtime v0.1.8 (.../cargo-libafl/target/release/build/cargo-libafl-d0f2e223ee34551f/out)`

  Caused by:
    failed to load source for dependency `libafl`

  Caused by:
    Unable to update https://github.com/AFLplusplus/LibAFL.git?rev=4375206

  Caused by:
    revspec '4375206' not found; class=Reference (4); code=NotFound (-3)
  thread 'main' panicked at 'assertion failed: Command::new(\"cargo\").current_dir(&out_path).env(\"CARGO_TARGET_DIR\",
    out_path.join(\"rt\")).arg(\"build\").arg(&format!(\"--manifest-path={}/Cargo.toml\",
    out_dir)).arg(\"--release\").status().unwrap().success()', cargo-libafl/build.rs:50:5

This PR fixes that issue by using the full hash to pin the correct revision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant