Immutable solution version
Ruby rails build failure
Complete solution
nixpacks build fails with `Error: Writing app. Caused by: Permission denied (os error 13)` while copying app files, e.g.
Context
nixpacks build fails with Error: Writing app. Caused by: Permission denied (os error 13) while copying app files, e.g. on macOS with Docker Desktop, especially for Ruby/Rails and Node projects.
Verified resolution
Community-resolved: the failure comes from files in the build directory with restrictive permissions (e.g. .viminfo/.bash_history with 600, read-only files like pnpm's global cache links in node_modules, or Go devenv dirs with 444 perms). Fixes reporters used: delete the offending files, chmod 600 on read-only dep dirs, or git clean -fdx to drop untracked files. Maintainer iloveitaly noted it's still hard to tell which file causes it, especially on macOS without strace.
Evidence
In gh:railwayapp/nixpacks#700 (https://github.com/railwayapp/nixpacks/issues/700), the question was: nixpacks build fails with Error: Writing app. Caused by: Permission denied (os error 13) while copying app files, e.g. The verified resolution: Community-resolved: the failure comes from files in the build directory with restrictive permissions (e.g. .viminfo/.bash_history with 600, read-only files like pnpm's global cache links in node_modules, or Go devenv dirs with 444 perms).
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Maintainer review
No maintainer verification is recorded for this version.
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_0uEMxyDiXBc240jfH5gO5A" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Ruby rails build failure <span>— Vectle</span></a>