Repository navigation
Commit ea9e08a
[luv-27] Fall back to docker rm for root-owned files in luv --clean (#27)
A previous fix made _force_rmtree chmod-and-retry, but Docker
bind-mounts can leave files owned by root (e.g. Rust target-docker
caches built inside dev-environment). nivedit can't chmod those —
os.chmod raises EPERM.
On PermissionError, run a busybox container with the workspace's
parent dir bind-mounted and have its root rm -rf the workspace.
Symmetric with how Docker created the mess. Cron-friendly: no sudo,
no root crontab. No-op if docker isn't installed.
Bump to 0.0.20.
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>1 parent 8542b91 commit ea9e08a
2 files changed
Lines changed: 29 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
414 | 435 | | |
415 | | - | |
| 436 | + | |
| 437 | + | |
416 | 438 | | |
417 | | - | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
418 | 444 | | |
419 | 445 | | |
420 | 446 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments