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 compiling binstalk-downloader while installing cargo-binstall #2041

Open
TohidN opened this issue Feb 8, 2025 · 2 comments
Open

Error compiling binstalk-downloader while installing cargo-binstall #2041

TohidN opened this issue Feb 8, 2025 · 2 comments

Comments

@TohidN
Copy link

TohidN commented Feb 8, 2025

I'm Installing cargo-binstall(latest: v1.10.22) in windows 10 with rust(x86_64-pc-windows-msvc - 1.84.1) using cargo install cargo-binstall.
I got this error while compiling packages:

   Compiling binstalk-downloader v0.13.11
error[E0560]: struct `NameServerConfig` has no field named `tls_config`
  --> C:\Users\MyPC\.cargo\registry\src\index.crates.io-6f17d22bba15001f\binstalk-downloader-0.13.11\src\remote\resolver.rs:54:17   
54 |                 tls_config: None,
   |                 ^^^^^^^^^^ `NameServerConfig` does not have this field
   |
   = note: all struct fields are already assigned

For more information about this error, try `rustc --explain E0560`.
error: could not compile `binstalk-downloader` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
nstallBDrHrX`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
@passcod
Copy link
Member

passcod commented Feb 8, 2025

I think that's related to hickory. Use --locked for now.

@vadimpiven
Copy link

For anyone using cargo-run-bin, adding locked to

[workspace.metadata.bin]
cargo-binstall = { version = "1.10.22", locked = true }

helped to resolve this issue.

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

3 participants