Skip to content

Fix ccache permission denied on fresh devcontainer volumes#51

Merged
ltowarek merged 1 commit into
mainfrom
fix/local-ccache
May 16, 2026
Merged

Fix ccache permission denied on fresh devcontainer volumes#51
ltowarek merged 1 commit into
mainfrom
fix/local-ccache

Conversation

@ltowarek
Copy link
Copy Markdown
Owner

Summary

  • Pre-create /home/vscode/.ccache with correct ownership (vscode:vscode) in the devcontainer Dockerfile, using the same mkdir -p + chown pattern already applied to .claude

Motivation

Docker initialises named volumes with root:root ownership on the mount-point directory. When the ccache volume is mounted for the first time, Docker copies the image layer at that path into the empty volume — preserving file ownership. Without the pre-created directory in the image, the volume is initialised as root-owned and the vscode user gets Permission denied when ccache tries to create its tmp/ subdirectory.

Test plan

  • Delete the existing ccache Docker volume (docker volume rm ccache) and reopen the devcontainer
  • Run idf.py build — ccache should operate without permission errors

🤖 Generated with Claude Code

… denied on fresh volumes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ltowarek ltowarek enabled auto-merge (squash) May 16, 2026 23:14
@ltowarek ltowarek merged commit bba1761 into main May 16, 2026
6 checks passed
@ltowarek ltowarek deleted the fix/local-ccache branch May 16, 2026 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant