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

error[E0433]: failed to resolve: use of undeclared crate or module reqwest #1630

Closed
perfect7gentleman opened this issue Feb 27, 2023 · 9 comments · Fixed by #1632
Closed
Assignees

Comments

@perfect7gentleman
Copy link

error[E0433]: failed to resolve: use of undeclared crate or module `reqwest`
   --> src/util.rs:517:41
    |
517 | pub fn new_reqwest_blocking_client() -> reqwest::blocking::Client {
    |                                         ^^^^^^^ use of undeclared crate or module `reqwest`

error[E0433]: failed to resolve: use of undeclared crate or module `reqwest`
   --> src/util.rs:518:5
    |
518 |     reqwest::blocking::Client::builder()
    |     ^^^^^^^ use of undeclared crate or module `reqwest`
    |
help: consider importing one of these items
    |
15  | use crate::dist::Client;
    |
15  | use crate::jobserver::Client;
    |
15  | use jobserver::Client;
    |
help: if you import `Client`, refer to it directly
    |
518 -     reqwest::blocking::Client::builder()
518 +     Client::builder()
    |

warning: ignoring -C extra-filename flag due to -o flag

For more information about this error, try `rustc --explain E0433`.
warning: `sccache` (lib) generated 1 warning
error: could not compile `sccache` due to 2 previous errors; 1 warning emitted

git version

@Xuanwo
Copy link
Collaborator

Xuanwo commented Feb 28, 2023

How did you build this project?

@perfect7gentleman
Copy link
Author

Gentoo's ebuild.

@Xuanwo
Copy link
Collaborator

Xuanwo commented Feb 28, 2023

Gentoo's ebuild.

Please provide as many details as you can, for examples:

  • The detailed git sha you are using.
  • The detailed cargo command that you are using (are you build without default feature?).
  • If the gentoo's ebuild is publicly tracked by git, please also attach the url.

By the way, if this issue is related to gentoo specific problem, please report to the packager instead. Based on my searching of sccache on gentoo, it's quiet out of date: https://packages.gentoo.org/packages/dev-util/sccache

@perfect7gentleman
Copy link
Author

 * Checking out https://github.com/mozilla/sccache.git to /tmp/portage/dev-util/sccache-9999/work/sccache-9999 ...
git checkout --quiet refs/git-r3/HEAD
GIT update -->
   repository:               https://github.com/mozilla/sccache.git
   at the commit:            408ae947d7c36f0510695bc991438ce2e180d099
 * cargo fetch 
 * cargo vendor  /tmp/portage/dev-util/sccache-9999/work/cargo_home/gentoo
cargo build --release --features native-zlib --no-default-features

ebuild - https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-util/sccache/sccache-9999.ebuild

@Xuanwo Xuanwo self-assigned this Feb 28, 2023
@Xuanwo
Copy link
Collaborator

Xuanwo commented Feb 28, 2023

Thanks for report! I will fix it later.

@Xuanwo
Copy link
Collaborator

Xuanwo commented Mar 5, 2023

Hello, @perfect7gentleman. I apologize for the delay. Could you kindly attempt to build our main branch again? Thank you.

@fhaefemeier
Copy link

It is working for me. Thanks @Xuanwo !

@perfect7gentleman
Copy link
Author

It is okay now.

@drahnr
Copy link
Collaborator

drahnr commented Mar 6, 2023

We should add a check run for this configuration so we don't regress

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 a pull request may close this issue.

4 participants