Closed orhun closed 3 years ago
Thanks for the report!
Is this with an issue with an attempt to update cargo-udeps to a new version, or do you suspect older versions have it too? (no need to verify, just maybe it helps with finding the cause for the bug)
the tests work if you don't run it from a chroot, right?
1. Is this with an issue with an attempt to update cargo-udeps to a new version, or do you suspect older versions have it too? (no need to verify, just maybe it helps with finding the cause for the bug)
No, I only tried to build 0.1.17
since it's the latest release.
2. the tests work if you don't run it from a chroot, right?
Yup, they run without any fails.
I've run the tests in a chroot with base-devel
, git
, and rustup
, and the tests passed.
❯ yay -S devtools
⋮
⋮
❯ mkdir ~/chroot
❯ mkarchroot ~/chroot/root base-devel
⋮
⋮
❯ arch-nspawn ~/chroot/root bash
[root@root /]# pacman -S git rustup
⋮
⋮
[root@root ~]# cd
[root@root ~]# rustup install stable nightly
⋮
⋮
[root@root ~]# git clone https://github.com/cargo-udeps
⋮
⋮
[root@root ~]# cd ./cargo-udeps
[root@root cargo-udeps]# cargo --version
cargo 1.49.0 (d00d64df9 2020-12-05)
[root@root cargo-udeps]# cargo +nightly --version
cargo 1.51.0-nightly (c3abcfe8a 2021-01-25)
[root@root cargo-udeps]# cargo test
Compiling cargo-udeps v0.1.17 (/root/cargo-udeps)
Finished test [unoptimized] target(s) in 2m 11s
Running target/debug/deps/cargo_udeps-94f9dbcc781cffce
⋮
⋮
[root@root cargo-udeps]# echo $?
0
I think the std::io::Error
comes from this.
Hey, I'm trying to build
cargo-udeps
in a clean chroot. I will package it for the Arch Linux community repository afterwards.Unfortunately I'm getting the following error(s) while running the tests:
I suspect that it might be about the temp file being dropped early. (tempfile#115)
Any ideas about what might cause this?