cargo install have compilation fail in mac
alex-left opened this issue · 2 comments
alex-left commented
mac os: 14.14
rust version:
cargo 1.44.0 (05d080faa 2020-05-06)
rustc 1.44.0 (49cae5576 2020-06-01)
rustup 1.21.1 (7832b2ebe 2019-12-20)
error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/click-0.5.0/src/kube.rs:484:21
|
484 | client_cert_key.certs.clone(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `rustls::key::Certificate`, found struct `rustls::Certificate`
|
= note: expected struct `std::vec::Vec<rustls::key::Certificate>`
found struct `std::vec::Vec<rustls::Certificate>`
= note: perhaps two different versions of crate `rustls` are being used?
error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/click-0.5.0/src/kube.rs:485:21
|
485 | client_cert_key.key.clone(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `rustls::key::PrivateKey`, found struct `rustls::PrivateKey`
|
= note: perhaps two different versions of crate `rustls` are being used?
error[E0599]: no method named `dangerous` found for mutable reference `&mut rustls::client::ClientConfig` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/click-0.5.0/src/kube.rs:490:21
|
490 | cfg.dangerous()
| ^^^^^^^^^ method not found in `&mut rustls::client::ClientConfig`
error: aborting due to 3 previous errors
Some errors have detailed explanations: E0308, E0599.
For more information about an error, try `rustc --explain E0308`.
the same error with 0.5.1 version
zachschuermann commented
I was just able to replicate. Looks like something is pulling in rustls 0.17
instead of 0.16
. As a simple workaround, you should be able to build from source for now. I'm looking into this in the meantime.
alex-left commented
yes, from the source I can compile it without problems. Thanks.