Skip to content

cargo install on Windows fails if the target executable is running #3486

Open

Description

OS: Windows 10 x64
Console Output:

C:\Users\USERNAME\Documents\Rust\winres>cargo install racer -f
    Updating registry `https://github.com/rust-lang/crates.io-index`
   Compiling rustc-serialize v0.3.22
   Compiling unicode-segmentation v0.1.3
   Compiling libc v0.2.18
   Compiling typed-arena v1.2.0
   Compiling utf8-ranges v0.1.3
   Compiling bitflags v0.7.0
   Compiling memchr v0.1.11
   Compiling ansi_term v0.9.0
   Compiling winapi-build v0.1.1
   Compiling regex-syntax v0.3.9
   Compiling unicode-width v0.1.4
   Compiling unicode-xid v0.0.3
   Compiling kernel32-sys v0.2.2
   Compiling strsim v0.5.2
   Compiling aho-corasick v0.5.3
   Compiling log v0.3.6
   Compiling vec_map v0.6.0
   Compiling winapi v0.2.8
   Compiling toml v0.2.1
   Compiling syntex_pos v0.52.0
   Compiling thread-id v2.0.0
   Compiling term_size v0.2.1
   Compiling term v0.4.4
   Compiling thread_local v0.2.7
   Compiling clap v2.19.3
   Compiling regex v0.1.80
   Compiling syntex_errors v0.52.0
   Compiling syntex_syntax v0.52.0
   Compiling env_logger v0.3.5
   Compiling racer v2.0.4
    Finished release [optimized + debuginfo] target(s) in 613.58 secs
   Replacing C:\Users\USERNAME\.cargo\bin\racer.exe
error: failed to move `C:\Users\USERNAME\.cargo\bin\cargo-install.txmENb8PGFGR\racer.exe` to `C:\Users\USERNAME\.cargo\bin\racer.exe`

To learn more, run the command again with --verbose.

cargo version:

C:\Users\USERNAME\Documents\Rust\winres>cargo version
cargo 0.17.0-nightly (740f9c0 2016-12-29)

rustc version:

C:\Users\USERNAME\Documents\Rust\winres>rustc -vV
rustc 1.16.0-nightly (4ecc85beb 2016-12-28)
binary: rustc
commit-hash: 4ecc85beb339aa8089d936e450b0d800bdf580ae
commit-date: 2016-12-28
host: x86_64-pc-windows-msvc
release: 1.16.0-nightly
LLVM version: 3.9

See also #3364

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Command-installE-mediumExperience: MediumExperience: MediumO-windowsOS: WindowsOS: WindowsS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions