Skip to content

fix: release workflow goreleaser --skip=validate — accept ui_dist drift at release time#18

Merged
intel352 merged 1 commit into
mainfrom
fix/release-skip-validate
May 16, 2026
Merged

fix: release workflow goreleaser --skip=validate — accept ui_dist drift at release time#18
intel352 merged 1 commit into
mainfrom
fix/release-skip-validate

Conversation

@intel352
Copy link
Copy Markdown
Contributor

Followup to PRs #14 + #16. v1.0.3 release run surfaced third bug after npm-auth + cp-cwd fixes landed: GoReleaser dirty-state check fires on freshly built ui_dist. Fix: --skip=validate. Followup: tag v1.0.4 from main.

🤖 Generated with Claude Code

…ft at release time

v1.0.3 release run surfaced third bug after npm-auth + cp-cwd fixes landed:

  release failed after 0s
    error= git is in a dirty state
       M internal/ui_dist/index.html

Root cause: Build-admin-UI step rebuilds internal/ui_dist/ from workflow
repo HEAD (latest UI source), which may differ from this repo's committed
snapshot (kept in-tree for go:embed at dev time). GoReleaser's
git-dirty-state validation correctly flags this as 'modified files since
last commit'.

The fresh build IS the intended release artifact — we WANT the just-built
dist embedded in the release binary, not the stale committed snapshot. So
the dirty state is expected at release time.

Fix: --skip=validate flag bypasses dirty check. Per goreleaser docs this
is the appropriate escape hatch when build artifacts intentionally differ
from committed state.

Followup: cut v1.0.4 from main after this lands.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 16, 2026 06:41
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds --skip=validate to the GoReleaser invocation in the release workflow so the freshly-rebuilt internal/ui_dist/ assets don't trip GoReleaser's git-dirty-state check during release.

Changes:

  • Pass --skip=validate to goreleaser release --clean.
  • Add an inline comment explaining why the dirty-state check is bypassed (ui_dist is rebuilt from upstream UI repo HEAD at release time).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@intel352 intel352 merged commit 22e2ea2 into main May 16, 2026
12 checks passed
@intel352 intel352 deleted the fix/release-skip-validate branch May 16, 2026 06:50
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.

2 participants