fix(scripts/releaser/v1): remove doubled "v" in release calendar latest release link - #27260
#27260Merged
mtojek merged 2 commits intoJul 15, 2026
maincoder/coder:mainfrom
fix/release-calendar-doubled-version-prefix-maincoder/coder:fix/release-calendar-doubled-version-prefix-mainCopy head branch name to clipboard
Merged
fix(scripts/releaser/v1): remove doubled "v" in release calendar latest release link#27260mtojek merged 2 commits intomaincoder/coder:mainfrom fix/release-calendar-doubled-version-prefix-maincoder/coder:fix/release-calendar-doubled-version-prefix-mainCopy head branch name to clipboard
mtojek merged 2 commits into
maincoder/coder:mainfrom
fix/release-calendar-doubled-version-prefix-maincoder/coder:fix/release-calendar-doubled-version-prefix-mainCopy head branch name to clipboard
Conversation
mtojek
marked this pull request as ready for review
July 15, 2026 10:43
johnstcn
approved these changes
Jul 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The interactive releaser (
scripts/releaser) renders the "Latest Release"cell of the release calendar with a doubled version prefix, e.g.
[vv2.35.0](.../tag/v2.35.0).version.String()already returns av-prefixed string (e.g.v2.35.0),but
updateCalendarwrapped it in a"[v%s]"template, so the link labelgained a second
v. The tag URL was already correct because release tagscarry the
vprefix.Fix
Drop the extra
vfrom the label template ("[v%s]"→"[%s]"). The URL isunchanged.
[vv2.35.0][v2.35.0]Test
Added
scripts/releaser/v1/docs_test.go:TestUpdateCalendarLatestReleaseVersionPrefixasserts theLatestReleasecell for a matching row on both a patch and a minor release. It fails on the
old code (
[vv2.35.x]) and passes with the fix.TestUpdateCalendarNotReleasedRowNamecovers theNot Released→Mainlinepromotion and the major.minor "Release name" link (patch omitted).
Investigation notes
scripts/release.sh→go run ./scripts/releaser --legacy→runRelease→promptAndUpdateDocs→updateReleaseDocs→updateCalendarFile→updateCalendar(scripts/releaser/v1/docs.go).updateCalendar:fmt.Sprintf("[v%s](%s)", newVer.String(), ...)combined with
version.String()returningv%d.%d.%d.releaseTagURLFmtURL was correctbecause tags are
v-prefixed.scripts/update-release-calendar.shis a separateimplementation and is not affected (it strips the
vbefore re-adding one).release/2.35(filescripts/releaser/docs.go): fix(scripts/releaser): remove doubled "v" in release calendar latest release link #27259.This PR was generated by Coder Agents.