lxd: Stop setting $HOME in containers
Metadata
Current evaluation
Stopped setting $HOME in LXD containers to prevent .cache files from writing to the mounted project directory. Merged after reviewer approval and CI checks, addressing bug 1703642.
Suggested action: —
No scores available.
Issue body
Because the project folder is mounted into the container and `$HOME` points at it, .cache ends up in the project folder. We need to stop setting `$HOME`.
This addresses one aspect of bug [1703642](https://bugs.launchpad.net/snapcraft/+bug/1703642).
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Stopped setting $HOME in LXD containers to prevent .cache files from writing to the mounted project directory. Merged after reviewer approval and CI checks, addressing bug 1703642. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged to stop setting $HOME in LXD containers, preventing .cache files from being written to the mounted project directory. This change addresses an initial aspect of bug 1703642. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged change prevents .cache files from writing to the mounted project directory by stopping $HOME assignment in LXD containers. Resolves part of bug 1703642 by retaining /root as the home directory. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1742 lxd: always remove tmp_dir after execution | snapcraft | merged | Merged fix ensuring the temporary directory is always removed after LXD container builds, preventing disk space waste on errors. Approved and passed CI. |