-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False positive error when try to download crate and .cargo-ok
for it already exists
#11762
Comments
Can you try the latest nightly? This should be fixed via #11665. |
Yes, this is fixed in
Now the |
I ran into the same problem in another machine. Fresh nightly suffers from this error too:
PS D:\Projects\quick-xml> cargo +nightly minimal-versions test --features serialize
info: running `cargo update -Z minimal-versions`
Updating crates.io index
Updating aho-corasick v0.7.20 -> v0.7.18
Updating anes v0.1.6 -> v0.1.4
Updating async-stream v0.3.3 -> v0.3.0
Updating async-stream-impl v0.3.3 -> v0.3.0
Updating atty v0.2.14 -> v0.2.6
Adding autocfg v0.1.6
Updating bitflags v1.3.2 -> v1.2.0
Updating bumpalo v3.11.1 -> v3.2.1
Updating bytes v1.3.0 -> v1.0.0
Adding cfg-if v0.1.2
Updating clap v3.2.23 -> v3.1.0
Removing clap_lex v0.2.4
Removing crossbeam-channel v0.5.6
Updating crossbeam-deque v0.8.2 -> v0.7.4
Updating crossbeam-epoch v0.9.13 -> v0.8.0
Adding crossbeam-queue v0.2.0
Updating crossbeam-utils v0.8.14 -> v0.7.0
Updating ctor v0.1.26 -> v0.1.9
Updating diff v0.1.13 -> v0.1.12
Updating document-features v0.2.7 -> v0.2.0
Adding dtoa v0.4.0
Updating either v1.8.0 -> v1.0.0
Updating encoding_rs v0.8.31 -> v0.8.0
Updating futures-core v0.3.25 -> v0.3.0
Updating half v1.8.2 -> v1.6.0
Updating hashbrown v0.12.3 -> v0.8.1
Removing hermit-abi v0.1.19
Removing hermit-abi v0.2.6
Updating indexmap v1.9.2 -> v1.5.2
Updating itertools v0.10.5 -> v0.10.0
Updating itoa v1.0.5 -> v0.3.0
Updating js-sys v0.3.60 -> v0.3.51
Updating libc v0.2.139 -> v0.2.8
Removing litrs v0.2.3
Updating log v0.4.17 -> v0.4.0
Adding maybe-uninit v2.0.0
Updating memchr v2.5.0 -> v2.4.0
Updating memoffset v0.7.1 -> v0.5.0
Removing num-traits v0.2.15
Adding num-traits v0.1.32
Adding num-traits v0.2.14
Updating num_cpus v1.15.0 -> v1.2.0
Updating once_cell v1.16.0 -> v1.5.2
Updating oorandom v11.1.3 -> v11.1.0
Updating ordered-float v2.10.0 -> v2.0.0
Updating os_str_bytes v6.4.1 -> v6.0.0
Updating output_vt100 v0.1.3 -> v0.1.2
Updating pin-project-lite v0.2.9 -> v0.2.5
Updating plotters v0.3.4 -> v0.3.1
Updating plotters-backend v0.3.4 -> v0.3.0
Updating plotters-svg v0.3.3 -> v0.3.0
Removing proc-macro2 v1.0.49
Adding proc-macro2 v0.4.21
Adding proc-macro2 v1.0.32
Removing quote v1.0.23
Adding quote v0.6.10
Adding quote v1.0.0
Updating rayon v1.6.1 -> v1.3.0
Updating rayon-core v1.10.1 -> v1.7.0
Adding redox_syscall v0.1.0
Adding redox_termios v0.1.0
Updating regex v1.7.0 -> v1.5.0
Updating regex-syntax v0.6.28 -> v0.6.24
Adding rustc_version v0.2.3
Removing ryu v1.0.12
Updating same-file v1.0.6 -> v1.0.1
Updating scopeguard v1.1.0 -> v1.0.0
Adding semver v0.9.0
Adding semver-parser v0.7.0
Updating serde v1.0.151 -> v1.0.137
Updating serde_derive v1.0.151 -> v1.0.137
Updating serde_json v1.0.91 -> v1.0.0
Removing syn v1.0.107
Adding syn v0.15.22
Adding syn v1.0.90
Adding termion v1.5.0
Updating textwrap v0.16.0 -> v0.14.0
Updating tinytemplate v1.2.1 -> v1.1.0
Updating tokio v1.23.0 -> v1.21.1
Updating tokio-macros v1.8.2 -> v1.7.0
Updating tokio-stream v0.1.11 -> v0.1.0
Updating tokio-test v0.4.2 -> v0.4.0
Removing unicode-ident v1.0.6
Adding unicode-xid v0.1.0
Adding unicode-xid v0.2.0
Updating walkdir v2.3.2 -> v2.3.0
Updating wasm-bindgen v0.2.83 -> v0.2.74
Updating wasm-bindgen-backend v0.2.83 -> v0.2.74
Updating wasm-bindgen-macro v0.2.83 -> v0.2.74
Updating wasm-bindgen-macro-support v0.2.83 -> v0.2.74
Updating wasm-bindgen-shared v0.2.83 -> v0.2.74
Updating web-sys v0.3.60 -> v0.3.51
Updating winapi v0.3.9 -> v0.3.6
Updating winapi-util v0.1.5 -> v0.1.1
Removing windows-sys v0.42.0
Removing windows_aarch64_gnullvm v0.42.0
Removing windows_aarch64_msvc v0.42.0
Removing windows_i686_gnu v0.42.0
Removing windows_i686_msvc v0.42.0
Removing windows_x86_64_gnu v0.42.0
Removing windows_x86_64_gnullvm v0.42.0
Removing windows_x86_64_msvc v0.42.0
Updating yansi v0.5.1 -> v0.5.0
info: running `cargo hack test --features serialize`
error: process didn't exit successfully: `\\?\C:\Users\Mingun\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\bin\cargo.exe metadata --format-version=1` (exit code: 101)
--- stderr
Downloading crates ...
error: failed to download `winapi v0.3.6`
Caused by:
unable to get packages from source
Caused by:
failed to unpack package `winapi v0.3.6`
Caused by:
failed to remove directory `C:\Users\Mingun\.cargo\registry\src\github.com-1ecc6299db9ec823\winapi-0.3.6`
Caused by:
Процесс не может получить доступ к файлу, так как этот файл занят другим процессом. (os error 32)
error: process didn't exit successfully: `\\?\C:\Users\Mingun\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\bin\cargo.exe hack test --features serialize` (exit code: 1)
PS D:\Projects\quick-xml> |
Can you provide a reproduction that doesn't involve using a third-party command? A quick skim of |
Probably not. So if problem in |
Closing as this is likely an issue with an external tool. |
Problem
During some operations, for example, running
cargo minimal-versions
cargo tried to create(?) a.cargo-ok
file which is already exist (which I think means that the corresponding crate is already downloaded). That attempt failed with an error but after removing the file and repeating command everything work as expected.Steps
I tried to reproduce tafia/quick-xml#562 report. During that I did the following:
cargo minimal-versions check
As you see, the process is failed due to existing file during attempt to download a crate. When I removed the mentioned file and repeat command, the check was performed successfully.
Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: