Skip to content

chore: Track .dockerignore and fail docker-buildx on a dirty tree - #547

Merged
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:dockerignore-clean-tree-guard
Nov 22, 2026
Merged

gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:dockerignore-clean-tree-guard

Conversation

@gianlucam76

Copy link
Copy Markdown
Member

The Go toolchain stamps the binary version with +dirty when the build context has untracked or modified files. A local, gitignored .dockerignore only protects the machine that has it.

Track .dockerignore (with CLAUDE.md, bin and cover.out) so every clone and CI runner excludes the same files, and make docker-buildx depend on a check-clean-tree target that fails, listing the offending files, when the working tree is not clean.

The Go toolchain stamps the binary version with +dirty when the build
context has untracked or modified files. A local, gitignored
.dockerignore only protects the machine that has it.

Track .dockerignore (with CLAUDE.md, bin and cover.out) so every clone
and CI runner excludes the same files, and make docker-buildx depend on
a check-clean-tree target that fails, listing the offending files, when
the working tree is not clean.
@gianlucam76
gianlucam76 merged commit cdbd771 into projectsveltos:main Nov 22, 2026
10 checks passed
@gianlucam76
gianlucam76 deleted the dockerignore-clean-tree-guard branch November 22, 2026 13:27
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