← Back to issue list

fix(provider): ensure /root/.cache exists

View original Github issue

Metadata

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

Current evaluation

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.

Suggested action:

No scores available.

Issue body

Fixes #2125 CRAFT-4037 Test failures are unrelated. I will be putting up a separate PR to fix those. Reporter has confirmed that [the fix works for them](https://github.com/canonical/charmcraft/issues/2125#issuecomment-2630600486) Tests will pass when I rebase on https://github.com/canonical/charmcraft/pull/2137

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b 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.
qwen3.6-35b-a3b-mtp-q6 Merged a fix ensuring /root/.cache exists, resolving #2125. Unrelated test failures were addressed by rebasing onto #2138. Reporter confirmed the fix works.
qwen3.6-35b-a3b-mtp-q6 Merged fix ensuring /root/.cache exists, resolving #2125 and CRAFT-4037. Tests passed after rebasing on #2138. Reporter verified the solution.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#2046 fix: use the same cache directory in providers charmcraft merged 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.
78%
#1763 fix(provider): forward shared cache charmcraft merged Merged provider fix to forward the shared cache, resolving issue #1762. Approved by two reviewers, the change adds 107 lines across two files to implement the forwarding logic.
75%
#865 fix(provider): bump compatibility tag craft-application merged Merged a fix bumping the Provider service compatibility tag in craft-application to prevent reuse of instances created before the State service. Approved by three reviewers and passed all CI checks.
72%
#2140 fix(hotfix/3.4): ensure /root/.cache exists charmcraft merged Merged to the 3.4 branch as a hotfix cherry-pick from #2134. Ensures the /root/.cache directory exists. Approved by two reviewers, passed CI, and modified five files with 82 additions and 15 deletions.
71%
#364 fix: ensure provider is available before launching craft-application merged Merged a fix by maintainer cmatsuoka ensuring the provider is available before launch. Approved by three reviewers and passed CI. The two-line change in one file resolves potential launch failures caused by missing providers.
70%