Skip to content

Commit 67d136c

Browse files
dmitshurgopherbot
authored andcommitted
internal/task: use Go1.N milestone for go1.N.0 major release
We're still using Go1.N milestones to track major Go release development and need to update FetchMilestones to handle that as of go1.21.0, the .0 version component is explicitly included in the major version string. For golang/go#57631. Change-Id: I1dcc366796af2e3831ff866e957bcbb0967bdfe5 Reviewed-on: https://go-review.googlesource.com/c/build/+/515036 Run-TryBot: Dmitri Shuralyov <[email protected]> Reviewed-by: Heschi Kreinick <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 4b7f59d commit 67d136c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/task/milestones.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ func (m *MilestoneTasks) FetchMilestones(ctx *wf.TaskContext, currentVersion str
5555
}
5656
majorVersion := fmt.Sprintf("go1.%d", x)
5757

58-
// RCs and betas use the major version's milestone.
59-
if kind == KindRC || kind == KindBeta {
58+
// Betas, RCs, and major releases use the major version's milestone.
59+
if kind == KindBeta || kind == KindRC || kind == KindMajor {
6060
currentVersion = majorVersion
6161
}
6262

0 commit comments

Comments
 (0)