Skip to content

fix(release): ignore BuildKit configs written into the checkout - #25

Merged
aledbf merged 1 commit into
mainfrom
fix/release-dirty-buildkitd-config
Sep 21, 2026
Merged

aledbf merged 1 commit into
mainfrom
fix/release-dirty-buildkitd-config

Conversation

@aledbf

@aledbf aledbf commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

The release job's useblacksmith/setup-docker-builder step writes its BuildKit daemon config with a relative path, so buildkitd.toml lands in the repository checkout. GoReleaser validates a clean tree before releasing and failed with "git is in a dirty state" on the untracked file, aborting the release.

Ignore buildkitd.toml and the fallback builder's
docker-container-buildkitd.toml at the repo root. Ignored files do not count as dirty, and the daemon keeps the config it was started with.

TestReleaseBuilderConfigsAreGitIgnored checks both paths with git check-ignore --no-index, without touching the working tree.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

The release job's useblacksmith/setup-docker-builder step writes its
BuildKit daemon config with a relative path, so buildkitd.toml lands in
the repository checkout. GoReleaser validates a clean tree before
releasing and failed with "git is in a dirty state" on the untracked
file, aborting the release.

Ignore buildkitd.toml and the fallback builder's
docker-container-buildkitd.toml at the repo root. Ignored files do not
count as dirty, and the daemon keeps the config it was started with.

TestReleaseBuilderConfigsAreGitIgnored checks both paths with
`git check-ignore --no-index`, without touching the working tree.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@aledbf
aledbf merged commit c5e686d into main Sep 21, 2026
5 checks passed
@aledbf
aledbf deleted the fix/release-dirty-buildkitd-config branch September 21, 2026 02:19
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