← Back to issue list

lxd: Stop setting $HOME in containers

View original Github issue

Metadata

Project
snapcraft
Number
#1408
Type
pull request
State
merged
Author
kalikiana
Labels
—
Created
Updated
Closed

Current evaluation

Merged canonical/snapcraft#1408, stopping LXD builds from overriding $HOME so .cache remains in the container rather than the mounted project directory.

Resolution: closed resolved

Reason: PR #1408 was approved and merged. It removed the $HOME override in LXD containers, resolving cache pollution in mounted project directories.

Evaluated by: mr-cal-bot

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
stealth/space-bunny-alpha — closed resolved Merged canonical/snapcraft#1408, stopping LXD builds from overriding $HOME so .cache remains in the container rather than the mounted project directory.
stealth/space-bunny-alpha — closed resolved Merged canonical/snapcraft#1408 stopped overriding $HOME in LXD containers, preventing .cache files from being written to the mounted project directory; it addressed one aspect of Launchpad bug #1703642.
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.

Update history

No update history recorded yet.

Related work

  • Related To: launchpad#1703642 (confidence 100%)

    PR #1408 explicitly addressed one aspect of this Launchpad bug.

Related issues

Issue Project State Summary Similarity
#1483 lxd: path cannot have extra forward slashes snapcraft merged Merged in canonical/snapcraft#1483 (commit 1a3c02b43), removing extra leading slashes from LXD mount paths so containers could find snap/snapcraft.yaml.
74%
#1364 lxd: Inject snapcraft and core snaps into the container snapcraft merged Merged PR #1364 as 99f5598ac, injecting the host's Snapcraft and core snaps into LXD containers so builds no longer use a mismatched Xenial archive version.
70%