Rockcraft wipes working directory
Metadata
Current evaluation
Maintainers agreed to prevent `organize` rules from wiping the working directory mounted at `/root/project`, but no safeguard or resolving fix is evident and the issue remains open.
Suggested action: keep open
Reason: A maintainer explicitly called wiping the local directory "definitely, let's say, undesirable" and proposed detecting `organize` declarations affecting `/root/project`; the reporter supplied a reproducer and resolved the underlying usage question. Repository and history searches found no implementing safeguard or closing reference, so the valid defensive fix should remain open.
Evaluated by: mr-cal-bot
Impact:
84
Quick Win:
34
Complexity:
48
Confidence:
90
Actionability:
78
Issue body
When running rockcraft with the organize option, the working directory gets completely wiped.
Steps to reproduce:
```bash
git clone git@github.com:jardon/zookeeper-rock.git
git checkout wipe-workdir
rockcraft -v
```
Here is the verbose output:
```
Starting Rockcraft 0.0.1.dev1
Logging execution to '/home/jardon/.cache/rockcraft/log/rockcraft-20221021-081009.128623.log'
Launching instance...
Starting Rockcraft 0.0.1.dev1
Logging execution to '/tmp/rockcraft.log'
Retrieving base ubuntu:20.04
Retrieved base ubuntu:20.04 for amd64
Extracting ubuntu:20.04
Extracted ubuntu:20.04
Initializing parts lifecycle
Executing parts lifecycle
Executing parts lifecycle: skip pull pebble (already ran)
Executing action
Executed: skip pull pebble (already ran)
Executing parts lifecycle: skip pull zookeeper (already ran)
Executing action
Executed: skip pull zookeeper (already ran)
Executing parts lifecycle: skip overlay pebble (already ran)
Executing action
Executed: skip overlay pebble (already ran)
Executing parts lifecycle: skip overlay zookeeper (already ran)
Executing action
Executed: skip overlay zookeeper (already ran)
Executing parts lifecycle: skip build pebble (already ran)
Executing action
Executed: skip build pebble (already ran)
Executing parts lifecycle: build zookeeper
Executing action
Removing suid/guid from /root/parts/zookeeper/install/bin/su
Removing suid/guid from /root/parts/zookeeper/install/usr/bin/newgrp
/root/parts/zookeeper/install/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts will be a dangling symlink
Removing suid/guid from /root/parts/zookeeper/install/sbin/pam_extrausers_chkpwd
Removing suid/guid from /root/parts/zookeeper/install/sbin/unix_chkpwd
:: + cp conf/zoo_sample.cfg conf/zoo.cfg
:: + cp -r ./LICENSE.txt ./NOTICE.txt ./README.md ./README_packaging.md ./bin ./conf ./docs ./lib /root/parts/zookeeper/install
/root/project: Device or resource busy
Full execution log: '/tmp/rockcraft.log'
craft-providers error: Failed to execute pack in instance.
Full execution log: '/home/jardon/.cache/rockcraft/log/rockcraft-20221021-081009.128623.log'
```
Here is the [log](https://pastebin.com/YXAVDsph)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
84
Quick Win:
34
Complexity:
48
Confidence:
90
Actionability:
78
|
keep open | Maintainers agreed to prevent `organize` rules from wiping the working directory mounted at `/root/project`, but no safeguard or resolving fix is evident and the issue remains open. | |
| qwen/qwen3.6-35b-a3b |
Impact:
35
Quick Win:
25
Complexity:
15
Confidence:
90
Actionability:
85
|
keep open | Feature request to add a safeguard or warning when organize targets /root/project, preventing accidental wiping of the host working directory. Maintainers agreed to implement it. | |
| qwen/qwen3.8-27b |
Impact:
55
Quick Win:
30
Staleness:
35
Complexity:
45
Confidence:
70
Support Request:
20
|
keep open | Rockcraft's organize key can wipe the host working directory when a user maps /root/project (the project mountpoint) to another path. Maintainer agreed a safeguard is needed; no fix found yet, and a contributor offered to take it on in March 2026. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
55
Complexity:
20
Confidence:
80
Support Request:
10
|
needs triage | Rockcraft wipes working directory when using the organize option. Maintainers agreed a safeguard is needed, but the issue lacks labels and assignee after nearly four years. A contributor recently offered to implement the fix, awaiting formal triage. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
75
Complexity:
20
Confidence:
85
Support Request:
5
|
keep open | Rockcraft's organize directive can accidentally wipe the host working directory when pointing to /root/project. Maintainers acknowledged the problem and agreed to add a safeguard, but it remains unaddressed after nearly 4 years. |
Update history
No update history recorded yet.
Related issues
No related issues found above the similarity threshold.