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

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

Closed
gtrrnr opened this issue Jan 30, 2023 · 3 comments

Comments

@gtrrnr
Copy link

gtrrnr commented Jan 30, 2023

Cargo version:

cargo 1.46.0

After doing git clone https://github.com/Sh1Yo/x8 (current commit: 5cd05be)
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)
@gtrrnr gtrrnr changed the title Building from sources failed: failed to get hyper as a dependency of package `reqwest v0.11.11 Building from sources failed: failed to get hyper as a dependency of package reqwest v0.11.11 Jan 30, 2023
@Sh1Yo
Copy link
Owner

Sh1Yo commented Feb 2, 2023

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

@gtrrnr
Copy link
Author

gtrrnr commented Feb 2, 2023

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

@gtrrnr gtrrnr closed this as completed Feb 2, 2023
@Sh1Yo
Copy link
Owner

Sh1Yo commented Feb 2, 2023

I'm glad it helped.

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

No branches or pull requests

2 participants