nextest-rs / nextest

A next-generation test runner for Rust.
https://nexte.st
Apache License 2.0
2.11k stars 92 forks source link

cargo install build err #45

Closed JasonkayZK closed 2 years ago

JasonkayZK commented 2 years ago

i tried installing via cargo install cargo-nextest, but multiple errors occurred:

image

here is my rust tool chain version:

λ  cargo -V
cargo 1.58.0-nightly (294967c53 2021-11-29)

λ rustc -V
rustc 1.59.0-nightly (0b6f079e4 2021-12-07)

And my OS:

Windows 10 Enterprise 20H2
sunshowers commented 2 years ago

Thanks for the report! I think this looks like an issue with Rust or Cargo, not with nextest. Could you try building nextest with the latest stable version of Rust?

JasonkayZK commented 2 years ago

I see what happened here.

I tried open the powershell as administrator and problem solved (both stable and nightly build)!

Now is ok to run:

cargo nextest run
    Finished test [unoptimized + debuginfo] target(s) in 0.01s
    Starting 26 tests across 1 binaries
        PASS [   0.017s] collection list::vector::test::new_test
        PASS [   0.022s] collection list::linked_list::test::test_contains
        PASS [   0.029s] collection list::linked_list::test::test_get_idx 
        PASS [   0.034s] collection list::linked_list::test::test_clear         
        PASS [   0.041s] collection list::linked_list::test::test_insert_idx_err
        PASS [   0.046s] collection list::linked_list::test::test_get_idx_err   
        PASS [   0.052s] collection list::linked_list::test::test_remove_idx
        PASS [   0.058s] collection list::linked_list::test::test_compiling 
        PASS [   0.064s] collection list::vector::test::test_drain          
        PASS [   0.070s] collection list::vector::test::test_into_iter    
        PASS [   0.075s] collection list::vector::test::compiling_test    
        PASS [   0.080s] collection list::linked_list::test::test_iterator
        PASS [   0.086s] collection list::linked_list::test::test_remove_idx_err
        PASS [   0.092s] collection list::linked_list::test::test_insert_idx    
        PASS [   0.097s] collection list::linked_list::test::test_push_and_pop  
        PASS [   0.103s] collection list::linked_list::test::test_peak
        PASS [   0.091s] collection list::vector::test::test_iter
        PASS [   0.092s] collection list::vector::test::test_iter_mut
        PASS [   0.090s] collection list::vector::test::test_pop
        PASS [   0.090s] collection list::vector::test::test_push
        PASS [   0.089s] collection list::vector::test::test_zst
        PASS [   0.090s] collection tree::binary_search_tree::tests::test_compiling
        PASS [   0.089s] collection tree::binary_search_tree::tests::test_insert
        PASS [   0.089s] collection tree::binary_search_tree::tests::test_pop_min
        PASS [   0.089s] collection tree::binary_search_tree::tests::test_pop_min2
        PASS [   0.088s] collection tree::binary_search_tree::tests::test_remove
     Summary [   0.158s] 26 tests run: 26 passed, 0 skipped

Thanks a lot! ❤️