Skip to content

[repogen] Two parallel release pipelines with incompatible artifact naming #34

Closed

Description

@bketelsen

Tags v*.*.* trigger both release.yml (hand-rolled: binaries named repogen-{os}-{arch}, hand-built packages, self-hosted repo, SHA256SUMS) and goreleaser.yml (linux-only repogen_{version}_{os}_{arch}.tar.gz). Which is authoritative is undefined, and the shared publish-to-r2 action's installer depends specifically on the release.yml naming (releases/download/${VERSION}/repogen-linux-${ARCH}) — asset-name drift breaks every downstream repo.

Related dead config: .goreleaser.yml injects -X main.version/commit/date but cmd/repogen/main.go declares no such variables and no --version flag exists — yet the action runs /tmp/repogen --version || /tmp/repogen --help.

Fix: pick one pipeline (org standard is GoReleaser per ADR-0012), make the action's download contract match it, and wire the ldflags stamp vars + --version for real.

Ref: https://github.com/frostyard/core/blob/main/docs/adr/0012-svu-versioning-and-rolling-dev-prerelease.md


Migrated from frostyard/core#6. This issue is the canonical work item.

Activity

  1. bketelsen commented on Aug 13, 2026

    @bketelsen
    Author

    The current production-critical pipeline is .github/workflows/release.yml.

    Why:

    • The shared publish-to-r2 Action downloads:
      repogen-linux-${ARCH}

    • Only release.yml produces:
      repogen-linux-amd64 and repogen-linux-arm64

    • GoReleaser produces tarballs named:
      repogen_${version}linux${arch}.tar.gz

    • At least nine frostyard repositories consume the shared Action, generally from @main.

    • Every published release currently contains artifacts from both workflows, confirming both pipelines race to
      modify the same GitHub release.

    My recommendation is:

    1. Keep the Action’s raw-binary asset contract unchanged.

    2. Make GoReleaser the sole release mechanism, consistent with core ADR-0012
      (https://github.com/frostyard/core/blob/main/docs/adr/0012-svu-versioning-and-rolling-dev-prerelease.md).

    3. Configure GoReleaser to publish raw Linux binaries named exactly:

      • repogen-linux-amd64
      • repogen-linux-arm64
    4. Add real version variables and a --version command/flag.

    5. Test the Action installer against a draft/test release.

    6. Only then delete .github/workflows/release.yml.

    7. Remove the hand-built deb/rpm/apk/bottle and repository archives unless a known consumer is found. The
      shared Action consumes none of them.

    So the distinction is:

    • Keep today: release.yml, because deleting it now breaks downstream publishing.
    • Keep long-term: GoReleaser, after it assumes the raw-binary compatibility contract.
    • Jettison long-term: the hand-rolled release workflow and its unconsumed packaging machinery.

    I would treat repogen-linux-{amd64,arm64} as a stable public API. The pipeline producing those files can
    change; their names and executable format should not. No repository files were changed during this
    investigation.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions