Skip to content

Commit

Permalink
Merge pull request #128482 from cockroachdb/blathers/backport-release…
Browse files Browse the repository at this point in the history
…-24.2.0-rc-128481

release-24.2.0-rc: released CRDB 24.2.0-rc.1. Next version 24.2.0
  • Loading branch information
celiala authored Aug 7, 2024
2 parents 3d1bcc1 + 45c9a7d commit 953d09c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pkg/build/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,14 @@ func BinaryVersion() string {
// N.B. new public-facing doc URLs are expected to be up beginning with the "alpha.1" prerelease. Otherwise, "dev" will
// cause the url mapper to redirect to the latest stable release.
func VersionForURLs() string {
// Prerelease versions >= "alpha.1"
if parsedVersionTxt.PreRelease() >= "alpha.1" {
return fmt.Sprintf("v%d.%d", parsedVersionTxt.Major(), parsedVersionTxt.Minor())
}
// Production release versions
if parsedVersionTxt.PreRelease() == "" {
return fmt.Sprintf("v%d.%d", parsedVersionTxt.Major(), parsedVersionTxt.Minor())
}
return "dev"
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/build/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v24.2.0-rc.1
v24.2.0

0 comments on commit 953d09c

Please sign in to comment.