Skip to content

fix(ci): extract version from var Number in homebrew validation#23

Merged
alxxjohn merged 1 commit into
mainfrom
fix/homebrew-version-extraction
Jul 1, 2026
Merged

fix(ci): extract version from var Number in homebrew validation#23
alxxjohn merged 1 commit into
mainfrom
fix/homebrew-version-extraction

Conversation

@alxxjohn

@alxxjohn alxxjohn commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

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.

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 alxxjohn merged commit ec21f3b into main Jul 1, 2026
17 of 18 checks passed
@alxxjohn alxxjohn deleted the fix/homebrew-version-extraction branch July 1, 2026 18:40
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).
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