Skip to content

fix: append -dirty suffix when built from modified worktree#15

Merged
fank merged 1 commit intomainfrom
claude/vcs-dirty-flag
Apr 12, 2026
Merged

fix: append -dirty suffix when built from modified worktree#15
fank merged 1 commit intomainfrom
claude/vcs-dirty-flag

Conversation

@fank
Copy link
Copy Markdown
Member

@fank fank commented Apr 12, 2026

Summary

  • Add vcs.modified check to vcsInfo() — appends -dirty to commit hash when built from a worktree with uncommitted changes
  • Aligns with the same fix applied to esq-cli and atl-cli

Follow-up to #14 which was merged before this review feedback was applied.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the vcsInfo function to detect a dirty VCS state and append a -dirty suffix to the commit hash. The reviewer recommends refactoring the build information logic to use ldflags with the -X option for injecting variables at build time, rather than parsing VCS settings at runtime.

Comment thread internal/cmd/root.go
@fank fank merged commit 54b40eb into main Apr 12, 2026
5 checks passed
@fank fank deleted the claude/vcs-dirty-flag branch April 12, 2026 11:14
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