fix(ci): extract version from var Number in homebrew validation#23
Merged
Conversation
version.go changed Number from const to var (6b1ccad) so ldflags -X injection works, but the homebrew-validation workflow still parsed it with an awk pattern anchored to `const Number = `. The pattern stopped matching, version came back empty, and the step failed with "failed to extract codeguard version from internal/version/version.go". Widen the pattern to match both `const` and `var` declarations. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
alxxjohn
added a commit
that referenced
this pull request
Jul 2, 2026
🤖 I have created a release *beep* *boop* --- ## [0.7.0](v0.6.1...v0.7.0) (2026-07-02) ### Features * **cli:** add What's New banner and task-grouped menu ([c1df999](c1df999)) * **cli:** What's New banner and task-grouped menu ([#21](#21)) ([45e56f7](45e56f7)) * execute checks-improvement plan tiers 1-6 ([733862f](733862f)) * **parsers:** tree-sitter TypeScript engine behind parsers.treesitter flag ([5d09161](5d09161)) ### Bug Fixes * **ci:** extract version from var Number in homebrew validation ([01d7a24](01d7a24)) * **ci:** extract version from var Number in homebrew validation ([#23](#23)) ([ec21f3b](ec21f3b)) * **version:** make Number a var so ldflags injection works ([6b1ccad](6b1ccad)) ### Performance Improvements * **scan:** parse/read files once, parallelize sections, scope cache ([d181a4f](d181a4f)) * **scan:** parse/read files once, parallelize sections, scope cache ([#24](#24)) ([c79d9ec](c79d9ec)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
version.go changed Number from const to var (6b1ccad) so ldflags -X injection works, but the homebrew-validation workflow still parsed it with an awk pattern anchored to
const Number =. The pattern stopped matching, version came back empty, and the step failed with "failed to extract codeguard version from internal/version/version.go".Widen the pattern to match both
constandvardeclarations.