brson / brson/wasm-opt-rs

`cargo clean` can't delete out\cxxbridge\crate\wasm-opt-cxx-sys on Windows

Open
#116 16 comments 0 reactions 0 assignees View on GitHub
Dominant language
WebAssembly
Stars
101
Forks
23
PR merge metrics
No merged PRs in 30d

Description

I have hit following error in CI: https://github.com/subspace/subspace/actions/runs/3434067151/jobs/5725766740

```
error: failed to remove build artifact

Caused by:
failed to remove file `D:\a\subspace\subspace\target\debug\wbuild\substrate-test-runtime\target\release\build\wasm-opt-cxx-sys-fae30863e99b4faf\out\cxxbridge\crate\wasm-opt-cxx-sys`

Caused by:
Access is denied. (os error 5)
Error: The process 'C:\Users\runneradmin\.cargo\bin\cargo.exe' failed with exit code 101
```

All that code does is `cargo clean`. On Linux I see that that location is a symbolic link, still it doesn't make much sense to me why it can't be removed. I need that to essentially work around https://github.com/brson/wasm-opt-rs/issues/115

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing `cargo clean` in the Windows CI environment and inspect the `wasm-opt-cxx-sys` path reported in the error. Compare its behavior with the symbolic link seen on Linux and review the related wasm-opt-rs issue 115. Done means the Windows CI cleanup completes without the access-denied error.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, wasm
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.