@@ -177,17 +177,17 @@ var builds = []*Build{
177
177
Builder : "linux-arm64-aws" ,
178
178
},
179
179
{
180
- GoQuery : ">= go1.15rc2 " , // See #40563 .
180
+ GoQuery : ">= go1.17beta1 " , // See #45727 .
181
181
OS : "freebsd" ,
182
182
Arch : "386" ,
183
- Builder : "freebsd-386-11_2 " ,
183
+ Builder : "freebsd-386-11_4 " ,
184
184
},
185
185
{
186
- GoQuery : ">= go1.15rc2 " , // See #40563 .
186
+ GoQuery : ">= go1.17beta1 " , // See #45727 .
187
187
OS : "freebsd" ,
188
188
Arch : "amd64" ,
189
189
Race : true ,
190
- Builder : "freebsd-amd64-11_2 " ,
190
+ Builder : "freebsd-amd64-11_4 " ,
191
191
},
192
192
{
193
193
OS : "windows" ,
@@ -260,6 +260,19 @@ var builds = []*Build{
260
260
Arch : "arm64" ,
261
261
Builder : "linux-arm64-packet" ,
262
262
},
263
+ {
264
+ GoQuery : "< go1.17beta1" , // See #40563.
265
+ OS : "freebsd" ,
266
+ Arch : "386" ,
267
+ Builder : "freebsd-386-11_2" ,
268
+ },
269
+ {
270
+ GoQuery : "< go1.17beta1" , // See #40563.
271
+ OS : "freebsd" ,
272
+ Arch : "amd64" ,
273
+ Race : true ,
274
+ Builder : "freebsd-amd64-11_2" ,
275
+ },
263
276
264
277
// Test-only builds.
265
278
{
@@ -1022,17 +1035,14 @@ func match(query, goVer string) bool {
1022
1035
switch query {
1023
1036
case "" : // A special case to make the zero Build.GoQuery value useful.
1024
1037
return true
1038
+ case ">= go1.17beta1" :
1039
+ return ! strings .HasPrefix (goVer , "go1.16" ) && ! strings .HasPrefix (goVer , "go1.15" )
1025
1040
case "< go1.17beta1" :
1026
1041
return strings .HasPrefix (goVer , "go1.16" ) || strings .HasPrefix (goVer , "go1.15" )
1027
1042
case ">= go1.16beta1" :
1028
1043
return ! strings .HasPrefix (goVer , "go1.15" )
1029
1044
case "< go1.16beta1" :
1030
1045
return strings .HasPrefix (goVer , "go1.15" )
1031
- case ">= go1.15rc2" :
1032
- // By the time this code is added, Go 1.15 RC 1 has already been released and
1033
- // won't be modified, that's why we only care about matching RC 2 and onwards.
1034
- // (We could've just done ">= go1.15", but that could be misleading in future.)
1035
- return goVer != "go1.15rc1" && ! strings .HasPrefix (goVer , "go1.15beta" )
1036
1046
default :
1037
1047
panic (fmt .Errorf ("match: query %q is not supported" , query ))
1038
1048
}
0 commit comments