Skip to content

Commit 50b678a

Browse files
committed
Update go.hcl to go 1.25
1 parent b50dbcd commit 50b678a

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

go.hcl

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,21 @@ version "1.23.0" "1.23.1" "1.23.2" "1.23.3" "1.23.4" "1.23.5" "1.23.6" "1.23.7"
122122
}
123123

124124
// All other versions
125-
version "1.24.0" "1.24.1" "1.24.2" "1.24.3" "1.24.4" "1.24.5" "1.24.6" "1.25.0" {
125+
version "1.24.0" "1.24.1" "1.24.2" "1.24.3" "1.24.4" "1.24.5" "1.24.6" {
126+
auto-version {
127+
version-pattern = "go([^\\s]+)"
128+
129+
html {
130+
url = "https://go.dev/dl/"
131+
// this XPath will match all versions starting with "go1", i.e. all future versions.
132+
// Once there is a new minor version, we'll need to update this, like in the previous sections.
133+
xpath = "//span[starts-with(., 'go1.24')]"
134+
}
135+
}
136+
}
137+
138+
// All other versions
139+
version "1.25.0" {
126140
auto-version {
127141
version-pattern = "go([^\\s]+)"
128142

0 commit comments

Comments
 (0)