← Back to issue list

fix: use the same cache directory in providers

View original Github issue

Metadata

Project
charmcraft
Number
#2046
Type
pull request
State
merged
Author
lengau
Labels
Created
Updated
Closed

Current evaluation

Merged a fix aligning provider cache directories with the snap's XDG_CACHE_DIR to prevent /root/.cache overrides. Approved by two reviewers and resolves issue #1993.

Suggested action:

No scores available.

Issue body

Without this, the snap's `XDG_CACHE_DIR` environment variable will override the use of `/root/.cache` for caching in a provider. Work around this by just making them the same directory. Fixes #1993 CRAFT-3698

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged a fix aligning provider cache directories with the snap's XDG_CACHE_DIR to prevent /root/.cache overrides. Approved by two reviewers and resolves issue #1993.
qwen3.6-35b-a3b-mtp-q6 Merged a fix standardizing the cache directory across providers to prevent the snap's XDG_CACHE_DIR from overriding /root/.cache. Resolves #1993.
qwen3.6-35b-a3b-mtp-q6 Merged a fix aligning provider cache directories to prevent the snap’s XDG_CACHE_DIR environment variable from overriding /root/.cache. Resolves #1993.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#2134 fix(provider): ensure /root/.cache exists charmcraft merged Merged a fix ensuring the /root/.cache directory exists during provider operations, resolving issue #2125 and CRAFT-4037. Approved by two reviewers, rebased on #2138, and confirmed working by the original reporter.
78%