blst-security / cherrybomb

Stop half-done APIs! Cherrybomb is a CLI tool that helps you avoid undefined user behaviour by auditing your API specifications, validating them and running API security tests.
https://www.blstsecurity.com/cherrybomb
Apache License 2.0
1.08k stars 78 forks source link

cherrybomb 1.0.0 release build failure #149

Closed chenrui333 closed 7 months ago

chenrui333 commented 8 months ago

While trying to packaging for homebrew, I ran into some build failure

   Compiling cherrybomb v1.0.0 (/private/tmp/cherrybomb-20231111-36215-xazg0n/cherrybomb-1.0.0)
warning: unused import: `std::option`
 --> src/table.rs:9:5
  |
9 | use std::option;
  |     ^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

error[E0599]: no variant or associated item named `Intrusive` found for enum `cherrybomb_engine::config::Profile` in the current scope
  --> src/telemetry.rs:12:18
   |
12 |         Profile::Intrusive => "passive and active oas scan",
   |                  ^^^^^^^^^ variant or associated item not found in `Profile`

error[E0308]: mismatched types
  --> src/main.rs:77:43
   |
77 |     let json_val = cherrybomb_engine::run(&config).await?;
   |                    ---------------------- ^^^^^^^ types differ in mutability
   |                    |
   |                    arguments to this function are incorrect
   |
   = note: expected mutable reference `&mut Config`
                      found reference `&Config`
note: function defined here
  --> /Users/rui/Library/Caches/Homebrew/cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/cherrybomb-engine-0.1.2/src/lib.rs:28:14
   |
28 | pub async fn run(config: &mut Config) -> anyhow::Result<Value> {
   |              ^^^
DeliciousBounty commented 8 months ago

@chenrui333 , We actually don't support homebrew, but I added it to our pipeline so I can keep this issue open.

DeliciousBounty commented 7 months ago

Hey @chenrui333, Thank for your help now we support homebrew, if you have any other issues don't hesitate to open a new one :)