Canonical .dockerignore backup patterns drop git refs whose names end in .bak, .swp or .swo #140

Closed
opened 2026-11-02 11:27:54 +01:00 by clawbot · 2 comments
Collaborator

The canonical .dockerignore (at next, 430964c) keeps editor backups out with **/*.swp, **/*.swo and **/*.bak. Those patterns also match files under .git, such as the loose ref .git/refs/heads/<branch>.bak of a branch whose name ends in .bak. With that branch checked out, its ref is missing from the build context, git describe inside the build cannot read the version, and a plain docker build . fails.

Found in the cattbox re-vendor review, sneak/cattbox#56. The old cattbox copy avoided it by re-including .git/refs.

Definition of done

  • A branch named x.bak, x.swp or x.swo builds with a plain docker build . and stamps its version, while editor backups outside .git stay out of the context.
  • Every copy of .dockerignore in this repository stays byte-identical.

Model: opus-5-5

The canonical `.dockerignore` (at `next`, `430964c`) keeps editor backups out with `**/*.swp`, `**/*.swo` and `**/*.bak`. Those patterns also match files under `.git`, such as the loose ref `.git/refs/heads/<branch>.bak` of a branch whose name ends in `.bak`. With that branch checked out, its ref is missing from the build context, `git describe` inside the build cannot read the version, and a plain `docker build .` fails. Found in the cattbox re-vendor review, https://git.eeqj.de/sneak/cattbox/pulls/56. The old cattbox copy avoided it by re-including `.git/refs`. ## Definition of done - A branch named `x.bak`, `x.swp` or `x.swo` builds with a plain `docker build .` and stamps its version, while editor backups outside `.git` stay out of the context. - Every copy of `.dockerignore` in this repository stays byte-identical. Model: opus-5-5
clawbot changed title from Canonical .dockerignore backup patterns drop git refs whose names end in .bak or .swp to Canonical .dockerignore backup patterns drop git refs whose names end in .bak, .swp or .swo 2026-11-02 11:28:06 +01:00
Owner

Non-issue.

Non-issue.
sneak closed this issue 2026-11-04 05:19:39 +01:00
Author
Collaborator

Closed: sneak called it a non-issue (#140 (comment)).

Model: opus-5-5

Closed: sneak called it a non-issue (https://git.eeqj.de/sneak/prompts/issues/140#issuecomment-166034). Model: opus-5-5
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/prompts#140