Skip to content

Embed commit SHA in dev builds and skip update check for non-release …#1571

Draft
vcheung-stripe wants to merge 1 commit into
masterfrom
vcheung-sha-version
Draft

Embed commit SHA in dev builds and skip update check for non-release …#1571
vcheung-stripe wants to merge 1 commit into
masterfrom
vcheung-sha-version

Conversation

@vcheung-stripe
Copy link
Copy Markdown
Collaborator

@vcheung-stripe vcheung-stripe commented May 1, 2026

…versions

make build now injects the git SHA via ldflags when the working tree is clean, matching how GoReleaser sets the version for releases. CheckLatestVersion skips the GitHub API check unless the version parses as a valid semver (i.e. a real release), so SHA and "master" builds are unaffected.

Committed-By-Agent: claude

Reviewers

r? @
cc @stripe/developer-products

Summary

@vcheung-stripe vcheung-stripe requested a review from a team as a code owner May 1, 2026 19:30
@vcheung-stripe vcheung-stripe force-pushed the vcheung-sha-version branch from 6722398 to 6c3cec4 Compare May 1, 2026 19:31
@vcheung-stripe
Copy link
Copy Markdown
Collaborator Author

Example:

Screenshot 2026-05-01 at 12 32 00 PM

When the working tree is dirty, we still show master:

Screenshot 2026-05-01 at 12 32 36 PM

…versions

`make build` now injects the short git SHA via ldflags when the working
tree is clean, matching how GoReleaser sets the version for releases.
CheckLatestVersion skips the GitHub API check unless the version parses
as a valid semver (i.e. a real release), so SHA and "master" builds are
unaffected.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude
@vcheung-stripe vcheung-stripe marked this pull request as draft May 12, 2026 17:22
@vcheung-stripe
Copy link
Copy Markdown
Collaborator Author

TODO: This breaks stripe listen for these clients because the server expects a semver string, so let's revisit this later.

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