Closed tk-nguyen closed 4 months ago
Try with --locked
? Or use a binary release
Try with
--locked
? Or use a binary release
cargo install --locked
seems to work fine. Thanks!
$ cargo install --locked cargo-watch
Updating crates.io index
Installing cargo-watch v8.5.2
Updating crates.io index
warning: package `iana-time-zone v0.1.59` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
Updating crates.io index
Downloaded autocfg v1.1.0
Downloaded bitflags v2.4.1
Downloaded cargo-platform v0.1.6
Downloaded itoa v1.0.10
<... lots of lines ...>
Compiling cargo-watch v8.5.2
Finished `release` profile [optimized] target(s) in 1m 00s
Installing C:\Users\thainguyen\.cargo\bin\cargo-watch.exe
Installed package `cargo-watch v8.5.2` (executable `cargo-watch.exe`)
Hello, for what its worth: I encountered the same issue and error messages using the gnu-windows toolchain on windows 11. Using cargo install --locked
seemed to work as well.
cargo install cargo-watch
was working previously on my setup from about 2 months ago when I was switching from msvc to gnu windows toolchains..
Just encountered this issue as well, maybe it would be a good idea to put a note to the README about trying the --locked
version in case installation fails.
Hello, I'm trying to install
cargo-watch
on Windows 11 withcargo install
, but it ran into an issue while compiling:Here's my current
rust
andcargo
version: