Skip to content

docs: CHANGELOG style convention and make build version trap - #61

Merged
aaearon merged 3 commits into
mainfrom
docs/concise-changelog
Aug 14, 2026
Merged

docs: CHANGELOG style convention and make build version trap#61
aaearon merged 3 commits into
mainfrom
docs/concise-changelog

Conversation

@aaearon

@aaearon aaearon commented Aug 14, 2026

Copy link
Copy Markdown
Owner

Docs-only. Three commits.

1. CHANGELOG style convention — records in CLAUDE.md that entries are one short line saying what changed and its user-visible effect; rationale, evidence and measurements belong in the PR description. Applies to [Unreleased] and everything from now on; released sections are published history and are left alone. The existing [Unreleased] entries are tightened to match, the duplicate ### Fixed heading left by #59 and #60 landing separately is consolidated, and the revoke JSON outcome field is moved to Added where it belongs. The exit-code behaviour change stays explicit so nobody skimming before an upgrade misses it.

2. make build version trapMakefile:2 sets VERSION ?= dev and injects it via -X ...cmd.version=$(VERSION) (Makefile:5-8), while runUpdate refuses ""/"dev" (cmd/update.go:38-39). So a plain make build produces a binary on which grant update can never work. Documented in CLAUDE.md's Build section and one line in the README development block, including the workaround: make build VERSION=0.7.0 — a version older than the latest release, so an update is actually found.

3. Stale version and count claims — a sweep of CLAUDE.md and README.md for numbers written before the recent churn. Three had drifted:

Claim Reality Action
Full module graph 110 -> 95 go list -m all reports 109 Counts dropped; the named exception and its justification are what matter
go-isatty v0.0.20 go.mod is on v0.0.24 Points at go.mod instead
"20 linters enabled" The list enumerates 19 Count dropped, list noted as exhaustive under disable-all

The other two dependency figures (33 build-graph modules, 39 go.mod requires) were accurate but brittle, so they went with the rest — consistent with the convention commit 1 establishes. Everything else checked out and was left alone: the SDK is correctly cited as v0.8.1 throughout, minio/selfupdate v0.6.0 matches go.mod, rhysd/go-github-selfupdate appears only in its correct historical context as the dependency that was removed, and the grant revoke exit-code and keyring sections in both files are already post-#59/#60.

No CHANGELOG entry: docs-only.

Verification: make lint and make build clean. No code change; cmd/update_test.go already covers the dev-build guard for both "" and "dev" ("dev build returns error" and "explicit dev version returns error"), so no test was added.

Record the convention in CLAUDE.md (one line per entry, what changed and
its user-visible effect; rationale and measurements belong in the PR
description) and tighten the existing [Unreleased] entries to match.
Released sections are left as published history.
A plain `make build` stamps cmd.version=dev, and runUpdate refuses
""/"dev", so `grant update` can never succeed on a default local build.
Record the trap and the `make build VERSION=0.7.0` workaround in
CLAUDE.md's Build section and the README development block.
Three numbers had drifted from the tree or contradicted themselves:

- The dependency bullet claimed a full module graph of 95; `go list -m all`
  reports 109. The other two figures (33 build-graph modules, 39 go.mod
  requires) were correct but are brittle. The load-bearing content is the
  named exception and its justification, so the counts are dropped and the
  direction of the change kept.
- `go-isatty` was pinned at v0.0.20 in prose; go.mod is on v0.0.24. Point
  at go.mod instead of restating a version that will drift again.
- "20 linters enabled" contradicted its own list, which enumerates 19.
  Dropped the count and noted the list is exhaustive under disable-all.
@aaearon
aaearon merged commit 36451b2 into main Aug 14, 2026
2 checks passed
@aaearon
aaearon deleted the docs/concise-changelog branch August 14, 2026 09:12
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