You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sweep: Homebrew formulas always get version 1.0.0, not the bottle's version #95
Kind: inconsistency. Severity: medium (users: wrong version in every generated formula).
Rule:docs/specs/generators.md:204-205: "Homebrew bottles don't require metadata parsing — the filename encodes the package name, version, and platform." docs/design/overview.md:64: Homebrew bottles "derive metadata from the filename."
Where (commit 0f1f070):
internal/cli/generate.go:240-244 builds the bottle's models.Package with only Filename and Size; no version is taken from the filename.
Reproduction: repogen generate --input-dir test/fixtures/bottles --output-dir $TMP/out --base-url https://example.invalid writes version "1.0.0" in both Formula/repogen-test.rb and Formula/repogen-utils.rb, although the input is repogen-utils--2.0.0.x86_64_linux.bottle.tar.gz. internal/generator/homebrew has no test file, and the integration test only checks that the word version occurs.
Why it matters:brew sees version 1.0.0 for every formula, so upgrades and version checks are wrong for any bottle that is not 1.0.0.
Suggested fix: parse name--version.platform from the bottle filename into Name and Version (as the spec says), and add a unit test in internal/generator/homebrew that fails on the hard-coded default.
Activity