File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -1458,6 +1458,13 @@ var cgoEnabled = map[string]bool{
1458
1458
"windows/arm" : false ,
1459
1459
}
1460
1460
1461
+ // List of platforms which are supported but not complete yet. These get
1462
+ // filtered out of cgoEnabled for 'dist list'. See golang.org/issue/28944
1463
+ var incomplete = map [string ]bool {
1464
+ "linux/riscv64" : true ,
1465
+ "linux/sparc64" : true ,
1466
+ }
1467
+
1461
1468
func needCC () bool {
1462
1469
switch os .Getenv ("CGO_ENABLED" ) {
1463
1470
case "1" :
@@ -1576,6 +1583,9 @@ func cmdlist() {
1576
1583
1577
1584
var plats []string
1578
1585
for p := range cgoEnabled {
1586
+ if incomplete [p ] {
1587
+ continue
1588
+ }
1579
1589
plats = append (plats , p )
1580
1590
}
1581
1591
sort .Strings (plats )
Original file line number Diff line number Diff line change @@ -212,6 +212,9 @@ func (t *tester) run() {
212
212
if t .failed {
213
213
fmt .Println ("\n FAILED" )
214
214
os .Exit (1 )
215
+ } else if incomplete [goos + "/" + goarch ] {
216
+ fmt .Println ("\n FAILED (incomplete port)" )
217
+ os .Exit (1 )
215
218
} else if t .partial {
216
219
fmt .Println ("\n ALL TESTS PASSED (some were excluded)" )
217
220
} else {
You can’t perform that action at this time.
0 commit comments