Repository navigation
Commit 9a77450
Make XDG_CACHE_HOME actually writable at runtime
Setting XDG_CACHE_HOME was self-defeating as written: uv honours it, so
`uv sync` created /tmp/.cache root-owned and mode 0755 during the build.
A task running under `-u $(id -u):$(id -g)` then could not write to the
very path the image advertises as its cache, which is worse than leaving
the variable unset.
Clear the directory and recreate it world-writable in the same layer as
the sync. Verified: `mkdir $XDG_CACHE_HOME/probe` now succeeds as an
arbitrary UID, where it failed with EACCES before.
Reported by Codex review on #12.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 4859445 commit 9a77450
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
56 | 67 | | |
57 | 68 | | |
58 | 69 | | |
| |||
0 commit comments