Sh1Yo / x8

Hidden parameters discovery suite
GNU General Public License v3.0
1.68k stars 152 forks source link

Building from sources failed: failed to get `hyper` as a dependency of package `reqwest v0.11.11` #32

Closed gtrrnr closed 1 year ago

gtrrnr commented 1 year ago

Cargo version:

cargo 1.46.0

After doing git clone https://github.com/Sh1Yo/x8 (current commit: https://github.com/Sh1Yo/x8/commit/5cd05be021401caf513ea244205acdd1c8982641) And trying to build it using cargo build --release i get following error log:

cargo build --release
    Updating crates.io index
    Updating git repository `https://github.com/raw-http/http`
    Updating git repository `https://github.com/raw-http/reqwest`
    Updating git repository `https://github.com/raw-http/rust-url`
    Updating git repository `https://github.com/raw-http/serde_urlencoded`
    Updating git repository `https://github.com/raw-http/cookie_store`
    Updating git repository `https://github.com/raw-http/h2`
    Updating git repository `https://github.com/raw-http/http-body`
    Updating git repository `https://github.com/raw-http/hyper`
error: failed to get `hyper` as a dependency of package `reqwest v0.11.11 (https://github.com/raw-http/reqwest#61fbb332)`
    ... which is depended on by `x8 v4.1.0 (/home/ffe4/x8)`

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

Caused by:
  Unable to update https://github.com/raw-http/hyper#9202aaae

Caused by:
  object not found - no match for id (9202aaae7b2a7962113837769324cf5f546872a7); class=Odb (9); code=NotFound (-3)
Sh1Yo commented 1 year ago

It works fine for me. Your rust version looks too old. Can you update it and rebuild the tool?

gtrrnr commented 1 year ago

Seems like it was because rust/cargo package was too old. Managed to compile it using cargo 1.66.1

Sh1Yo commented 1 year ago

I'm glad it helped.