← 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

PR #2134 merged as commit 9cc16dc5, creating /root/.cache before use to fix FileExistsError in #2125 (CRAFT-4037); backported to 3.4 via #2140 (ca66a94c), shipped in 3.3.3/3.4.1.

Resolution: closed resolved

Reason: PR #2134 was merged into main as commit 9cc16dc5, making the provider ensure /root/.cache exists so the broken symlink no longer raises FileExistsError; the reporter confirmed the fix, and it was backported to the 3.4 branch by merged PR #2140 (ca66a94c).

Evaluated by: mr-cal-bot

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
stealth/space-bunny-alpha — closed resolved PR #2134 merged as commit 9cc16dc5, creating /root/.cache before use to fix FileExistsError in #2125 (CRAFT-4037); backported to 3.4 via #2140 (ca66a94c), shipped in 3.3.3/3.4.1.
stealth/space-bunny-alpha — closed resolved Merged #2134 as 9cc16dc5, ensuring /root/.cache exists and fixing #2125/CRAFT-4037. The reporter confirmed the fix; it was also backported to 3.4 by #2140.
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.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/charmcraft#2125 (confidence 98%)

    Issue fixed by this PR; closed after reporter confirmation of the fix.

  • Related To: canonical/charmcraft#2140 (confidence 95%)

    Backport of #2134 to the 3.4 hotfix branch, merged as ca66a94c.

  • Related To: canonical/charmcraft#2137 (confidence 80%)

    Unrelated CI/build-dependency fixes; #2134 was rebased on #2138/#2137 so tests could pass.

Related issues

Issue Project State Summary Similarity
#1763 fix(provider): forward shared cache charmcraft merged Merged PR #1763 (commit e0eaee74) forwards the provider shared-cache path, restoring CRAFT_SHARED_CACHE handling and fixing #1762.
74%
#2140 fix(hotfix/3.4): ensure /root/.cache exists charmcraft merged Merged as ca66a94c, backporting #2134 to the 3.4 branch to ensure /root/.cache exists; the fix shipped in Charmcraft 3.4.1.
71%