Skip to content

sweep: Homebrew formulas always get version 1.0.0, not the bottle's version #95

Closed

Description

@frostyard-machines

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):

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.

Size: S.

Activity

  1. added
    sweep
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    sweep

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions