I am facing this error during my Docker build:
Step 20/34 : RUN cargo nextest archive --archive-file /build/target/release/test-archive.tar.zst --release
---> Running in eb5[101](https://atc-github.azure.cloud.bmw/lcm/amusage-mileage-consumer/runs/916284?check_suite_focus=true#step:11:102)e9011e
Downloading crates ...
Downloaded gloo-timers v0.2.4
Downloaded hermit-abi v0.1.19
Downloaded redox_syscall v0.2.16
Downloaded redox_users v0.4.3
Downloaded security-framework v2.7.0
Downloaded valuable v0.1.0
Downloaded wasm-bindgen-backend v0.2.83
Downloaded wasi v0.10.2+wasi-snapshot-preview1
Downloaded wasm-bindgen v0.2.83
Downloaded wepoll-ffi v0.1.2
Downloaded wasm-bindgen-shared v0.2.83
Downloaded wasm-bindgen-futures v0.4.33
Downloaded wasm-bindgen-macro-support v0.2.83
Downloaded wasm-bindgen-macro v0.2.83
Downloaded codespan-reporting v0.11.1
Downloaded winapi-util v0.1.5
Downloaded link-cplusplus v1.0.7
Downloaded winreg v0.10.1
Downloaded security-framework-sys v2.6.1
Downloaded cxx v1.0.80
Downloaded core-foundation v0.9.3
Downloaded wasi v0.11.0+wasi-snapshot-preview1
Downloaded core-foundation-sys v0.8.3
Downloaded android_system_properties v0.1.5
Downloaded scratch v1.0.2
Downloaded iana-time-zone-haiku v0.1.1
Downloaded cxxbridge-flags v1.0.80
Downloaded mach v0.3.2
Downloaded schannel v0.1.20
Downloaded vcpkg v0.2.15
Downloaded unicode-width v0.1.10
Downloaded cxxbridge-macro v1.0.80
Downloaded cxx-build v1.0.80
Downloaded bumpalo v3.11.1
Downloaded js-sys v0.3.60
Downloaded windows_aarch64_gnullvm v0.42.0
Downloaded windows_x86_64_gnullvm v0.42.0
Downloaded windows_i686_msvc v0.42.0
Downloaded windows_i686_gnu v0.42.0
Downloaded windows_x86_64_msvc v0.42.0
Downloaded windows_aarch64_msvc v0.42.0
Downloaded web-sys v0.3.60
Downloaded windows_i686_msvc v0.36.1
Downloaded windows_x86_64_msvc v0.36.1
Downloaded windows_x86_64_gnu v0.42.0
Downloaded windows_aarch64_msvc v0.36.1
Downloaded windows_x86_64_gnu v0.36.1
Downloaded windows_i686_gnu v0.36.1
Downloaded windows-sys v0.42.0
Downloaded winapi-x86_64-pc-windows-gnu v0.4.0
Downloaded windows-sys v0.36.1
Downloaded winapi-i686-pc-windows-gnu v0.4.0
error: error parsing Cargo metadata
Caused by:
The command '/bin/sh -c cargo nextest archive --archive-file /build/target/release/test-archive.tar.zst --release' returned a non-zero code: 96
failed to construct package graph: for package 'windows-sys 0.42.0 (registry+https://github.com/rust-lang/crates.io-index)': for dependency 'windows_aarch64_gnullvm', parsing target 'aarch64-pc-windows-gnullvm' failed: unknown target triple
Error: Process completed with exit code 96.
I am also wondering why windows dependencies such as windows-sys
are being fetched?
cargo tree | grep windows
-> Empty
Upgraded to latest stable Rust and latest Nextest version and problem does not occur anymore. But I still do wonder why these windows dependencies are being fetched.
Thanks for the report! Yes, this is fixed in the latest nextest.
That's how Cargo works—it fetches all dependencies for all platforms.