Closed ogabriel closed 5 years ago
on mac os mojave after I've updated using homebrew to 0.4.0
RUST_BACKTRACE=1 click
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ()', src/libcore/result.rs:1009:5
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: std::panicking::rust_panic_with_hook
5: std::panicking::continue_panic_fmt
6: rust_begin_unwind
7: core::panicking::panic_fmt
8: core::result::unwrap_failed
9: click::certs::try_ip_to_name
10: click::kube::Kluster::new
11: click::config::Config::cluster_for_context
12: click::Env::set_context
13: click::main
14: std::rt::lang_start::{{closure}}
15: std::panicking::try::do_call
16: __rust_maybe_catch_panic
17: std::rt::lang_start_internal
18: main
:warning: Unable to cargo install click
error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> /Users/jbx/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/build.rs:372:9
|
372 | let (_, _, perlasm_format) = ASM_TARGETS
| ^^^^^^^^^^^^^^^^^^^^^^ help: consider using a reference: `&(_, _, perlasm_format)`
error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> /Users/jbx/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/build.rs:710:9
|
710 | for (src, dst) in src_dst {
| ^^^^^^^^^^ help: consider using a reference: `&(src, dst)`
error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> /Users/jbx/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/build.rs:770:35
|
770 | RING_SRCS.iter().any(|(_, f)| cmp(f)) || RING_TEST_SRCS.iter().any(cmp),
| ^^^^^^ help: consider using a reference: `&(_, f)`
error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> /Users/jbx/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/build.rs:771:45
|
771 | Some("pl") => RING_SRCS.iter().any(|(_, f)| cmp(f)) || RING_PERL_INCLUDES.iter().any(cmp),
| ^^^^^^ help: consider using a reference: `&(_, f)`
error: aborting due to 4 previous errors
error: Could not compile `ring`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `click v0.4.0`, intermediate artifacts can be found at `/var/folders/s5/j4166jjx2nx9jj8yhqqtycpm0000gn/T/cargo-install.VIf58SRofwqi`
Caused by:
build failed
Same issue here
Same problem. Latest click (brew install click --HEAD)
There seem to be two issues in this thread. The panic with backtrace is fixed by #110. The unable to compile problem isn't in Click, but rather in the ring crate. I suspect you might be using an old version of Rust, but I'm not sure. Could you make sure you're on the most recent version of Rust.
I'm going to close this issue as it started out with the panic which is fixed. If you still can't compile on OSX, please open a new issue and I'll investigate. Thanks
Hi
I am was trying to set up my setup with the new version (4.0.0), but i was getting this new error:
When i use
RUST_BACKTRACE=1
click:This happens when i was trying to set my context, with all things correctly set
I have to note that:
0.3.2
(works perfectly, congrats to you all)