Skip to content

Add a version verb and embed the release tag #55

Closed

Description

@radiusred-cody

Goal

R4 friction finding #1, found before the first verb of the solo flight: the binary carries no version — the release tag reaches scripts/build-extension but is never embedded, so no verb could print it, and a stranger cannot tell what they installed (gh extension list is the only, undocumented, answer). Embed the tag via ldflags, add codecrew version (printing dev for source builds), document the install-verification step in the quickstart including that extension updates are always manual (gh extension upgrade), and cut v0.2.1 so the fix reaches installed extensions mid-flight.

Requirements

M4-R4

Plan

  1. internal/cli: var version = "dev" set via -ldflags -X; a version verb (also answering --version/-v) prints it. Test rides along per the contract.
  2. scripts/build-extension: add the -X flag carrying $tag.
  3. Docs: the quickstart's install step gains verification (gh codecrew version, gh extension list) and the update truth — gh never auto-updates extensions at any semver level; gh extension upgrade codecrew is always the user's act.
  4. After merge: tag v0.2.1, verify the workflow, gh extension upgrade, and that gh codecrew version prints v0.2.1 from the released binary. Evidence on this issue.

Ask-the-human points

None — operator said "fix it now" in discussion; the finding's remediation is the task.

Activity

  1. added
    cc:task
    on Aug 22, 2026
  2. radiusred-cody commented on Aug 22, 2026

    @radiusred-cody
    ContributorAuthor

    Started by @radiusred-cody[bot].

  3. radiusred-cody commented on Aug 22, 2026

    @radiusred-cody
    ContributorAuthor

    Release verified. v0.2.1 workflow succeeded; gh extension upgrade codecrew reported v0.2.0 → v0.2.1, and gh codecrew version from the released binary prints v0.2.1 — the finding's exact reproduction now answers instead of failing. The quickstart's install step documents the verification and the manual-update reality.

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

    cc:task

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions