Skip to content

fix(build): drop the !vault/** glob that broke the Railpack build - #352

Merged
QSchlegel merged 1 commit into
preprodfrom
claude/fix-dockerignore-vault
Jul 27, 2026
Merged

fix(build): drop the !vault/** glob that broke the Railpack build#352
QSchlegel merged 1 commit into
preprodfrom
claude/fix-dockerignore-vault

Conversation

@QSchlegel

Copy link
Copy Markdown
Collaborator

The preprod build of 629a652 failed. One line, my fault, from the fix in #351.

copy /vault/** /app/**
Build Failed: cannot copy to non-directory:
  /var/lib/buildkit/runc-overlayfs/cachemounts/buildkit243538423/app/**

Cause

Railpack turns each .dockerignore negation into a literal copy instruction. Both of mine appear in the build log:

Negation Generated instruction Result
!vault copy /vault /app/vault ✅ correct, recursive
!vault/** copy /vault/** /app/** ❌ buildkit takes ** literally

I added the glob as belt-and-braces on top of !vault, not knowing Railpack would emit it verbatim. It was redundant — the bare directory negation already copies the tree recursively, as the log confirms. This PR removes the glob and leaves the working directive, with a comment so nobody re-adds it.

Note on verification

This class of failure is not reproducible locally: next build doesn't read .dockerignore at all, and the failure is in Railpack's plan generation. The only real check is the Railway build itself, so I'd watch this one through rather than assume it's green.

Everything else from #351 stands — /roadmap/graph is server-rendered per request and no longer prerendered.

The preprod build of 629a652 failed:

  copy /vault/** /app/**
  Build Failed: cannot copy to non-directory:
    /var/lib/buildkit/.../app/**

Railpack turns each .dockerignore negation into a literal copy instruction.
`!vault` becomes `copy /vault /app/vault`, which is correct and recursive.
`!vault/**` becomes `copy /vault/** /app/**`, and buildkit takes the `**`
literally, so it tries to copy into a path that is not a directory.

The glob was redundant belt-and-braces on top of `!vault`. Removing it
leaves the working directive.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
multisig Ready Ready Preview, Comment Jul 27, 2026 11:07am

Request Review

@QSchlegel
QSchlegel merged commit 3e7f9a8 into preprod Jul 27, 2026
5 of 6 checks passed
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