Skip to content

Commit

Permalink
Mention that --force may be needed
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Jun 28, 2023
1 parent 06f8195 commit 8128d20
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion afl/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@ fn main() {
let out_dir = env::var("OUT_DIR").unwrap();

if installing && !building_cargo_afl {
println!("cargo:warning=You appear to be installing `cargo-afl` with:");
println!("cargo:warning=You appear to be installing the `cargo-afl` binary with:");
println!("cargo:warning= cargo install afl");
println!("cargo:warning=A future version of afl.rs will require you to use:");
println!("cargo:warning= cargo install cargo-afl");
println!("cargo:warning=You can use the new command now, if you like.");
println!(
"cargo:warning=Note: If the binary is already installed, you may need to add --force."
);
}

// smoelius: Build AFLplusplus in a temporary directory when installing or when building on docs.rs.
Expand Down
6 changes: 4 additions & 2 deletions cargo-afl/tests/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ struct Test {
should_contain_msg: bool,
}

static MSG: &str = "warning: You appear to be installing `cargo-afl` with:
static MSG: &str = "warning: You appear to be installing the `cargo-afl` binary with:
warning: cargo install afl
warning: A future version of afl.rs will require you to use:
warning: cargo install cargo-afl
warning: You can use the new command now, if you like.";
warning: You can use the new command now, if you like.
warning: Note: If the binary is already installed, you may need to add --force.
";

static TESTS: &[Test] = &[
Test {
Expand Down

0 comments on commit 8128d20

Please sign in to comment.