Charmcraft snap thinks `/cache` is the cache directory if snapd doesn't set `SNAP_USER_COMMON`
Metadata
Current evaluation
Charmcraft snap uses unwritable /cache as XDG_CACHE_HOME when snapd fails to set SNAP_USER_COMMON. Listed as a known issue in 3.4 release notes, still unfixed in current code, blocked by upstream snapd bug.
Suggested action: keep open
Reason: The issue is explicitly listed in the 3.4 release notes as a known issue 'scheduled to be fixed in upcoming patch releases', confirming maintainer awareness. The root cause is an upstream snapd bug (LP#2090938) that prevents SNAP_USER_COMMON from being set, and the snapcraft.yaml still contains the unguarded $SNAP_USER_COMMON/cache reference. It should remain open until either snapd is fixed or charmcraft adds a fallback.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
55
Quick Win:
33.0
Staleness:
60
Complexity:
40
Confidence:
75
Support Request:
5
|
keep open | Charmcraft snap uses unwritable /cache as XDG_CACHE_HOME when snapd fails to set SNAP_USER_COMMON. Listed as a known issue in 3.4 release notes, still unfixed in current code, blocked by upstream snapd bug. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
90
Complexity:
40
Confidence:
75
Support Request:
5
|
close stale | Charmcraft snap defaults to unwritable /cache for XDG_CACHE_HOME when snapd fails to set SNAP_USER_COMMON. Open for ~1.6 years with no maintainer comments or labels. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
90
Complexity:
30
Confidence:
80
Support Request:
10
|
close stale | Charmcraft snap defaults to /cache as XDG_CACHE_HOME when snapd omits SNAP_USER_COMMON. Unlabeled, zero comments, inactive for over a year. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
85
Complexity:
30
Confidence:
75
Support Request:
10
|
needs triage | Charmcraft snap falls back to unwritable /cache for XDG_CACHE_HOME when snapd omits SNAP_USER_COMMON. Unlabelled, no maintainer comments, open for over 1.5 years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
85
Complexity:
35
Confidence:
75
Support Request:
10
|
close stale | Charmcraft snap falls back to the unwritable /cache directory for XDG_CACHE_HOME when snapd omits SNAP_USER_COMMON. The issue is open, untriaged, and inactive for over 300 days, awaiting assignment and resolution. |
Update history
No update history recorded yet.
Related work
-
Blocked By:
snapd#2090938
(confidence 85%)
Root cause is snapd failing to set SNAP_USER_COMMON in the environment, tracked as LP bug 2090938.
Related issues
No related issues found above the similarity threshold.