Skip to content

can't "cargo clean" after running "cargo test" (permission denied) #6943

Closed
@matthiaskrgr

Description

@matthiaskrgr
cargo 1.36.0-nightly (759b6161a 2019-05-06)
release: 1.36.0
commit-hash: 759b6161a328db1d4863139e90875308ecd25a75
commit-date: 2019-05-06

repro:

git clone https://github.com/rust-lang/cargo
cd cargo
git checkout 414c1eb4d5142716ca461a2814ad9e3d4bdbeca6
cargo test --release
cargo clean 

cargo clean fails with:

error: could not remove build directory

Caused by:
  failed to remove file `/home/matthias/vcs/github/cargo/target/cit/t1183/home/.cargo/config`

Caused by:
  Permission denied (os error 13)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions