Skip to content

Pin the install command instead of asking the reader to substitute - #128

Merged
charlesgreen merged 2 commits into
mainfrom
docs-pin-install-version
Aug 2, 2026
Merged

Pin the install command instead of asking the reader to substitute#128
charlesgreen merged 2 commits into
mainfrom
docs-pin-install-version

Conversation

@charlesgreen

Copy link
Copy Markdown
Contributor

The substitution

The install snippet read:

go install github.com/simplycubed/code/cmd/simplycubed@<release-tag>

with prose above naming the current version. A reader had to do the substitution before they could run anything. Now it is the command:

go install github.com/simplycubed/code/cmd/simplycubed@v0.2.0

(For the record, nothing was wrong with the code block. Fenced blocks render <release-tag> literally; <...> only disappears in prose, where a renderer treats it as an inline HTML tag.)

The stale version, which is the real bug

Those version mentions were prose, not pins, so nothing caught them going stale. v0.2.0 shipped an hour ago with the README banner, both install commands, and three other lines still telling a reader to install v0.1.9.

scripts/verify-release.sh enforced three pins and none of these. It now also checks:

  • README.mdCurrent release: \vX.Y.Z``
  • README.md — the install command
  • docs/setup.md — the install command

so the next release cannot ship pointing at the previous one.

Verified

$ go install github.com/simplycubed/code/cmd/simplycubed@v0.2.0
$ simplycubed version
0.2.0

That is step 2 of docs/release.md, confirmed against the real tag.

No new tag needed: the docs now name the version that is already released.

The install snippet said @<release-tag> and the prose above it named the
current version, so a reader had to perform a substitution before they
could run anything. Give them the command.

The version mentions were prose, not pins, so nothing caught them going
stale: v0.2.0 shipped with the README banner, both install commands, and
three other lines still saying v0.1.9. verify-release.sh now checks the
banner and both install commands alongside the three it already enforced,
so the next release cannot repeat it.
@codecov

codecov Bot commented Aug 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Reverting the placeholder removal. The install command stays a placeholder
on purpose; what it lacked was the link that lets someone turn it into a
version.

verify-release.sh narrows to the README banner. That is the line that
actually claims what is current, and it is the one that went stale when
v0.2.0 shipped announcing v0.1.9. A placeholder cannot be pinned and
should not be.
@charlesgreen
charlesgreen enabled auto-merge (squash) August 2, 2026 09:39
@charlesgreen
charlesgreen merged commit 85c4987 into main Aug 2, 2026
3 checks passed
@charlesgreen
charlesgreen deleted the docs-pin-install-version branch August 2, 2026 09:39
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