File tree 1 file changed +9
-2
lines changed 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -1452,7 +1452,10 @@ func cmdbootstrap() {
1452
1452
bootstrapBuildTools ()
1453
1453
1454
1454
// Remember old content of $GOROOT/bin for comparison below.
1455
- oldBinFiles , _ := filepath .Glob (pathf ("%s/bin/*" , goroot ))
1455
+ oldBinFiles , err := filepath .Glob (pathf ("%s/bin/*" , goroot ))
1456
+ if err != nil {
1457
+ fatalf ("glob: %v" , err )
1458
+ }
1456
1459
1457
1460
// For the main bootstrap, building for host os/arch.
1458
1461
oldgoos = goos
@@ -1592,7 +1595,11 @@ func cmdbootstrap() {
1592
1595
1593
1596
// Check that there are no new files in $GOROOT/bin other than
1594
1597
// go and gofmt and $GOOS_$GOARCH (target bin when cross-compiling).
1595
- binFiles , _ := filepath .Glob (pathf ("%s/bin/*" , goroot ))
1598
+ binFiles , err := filepath .Glob (pathf ("%s/bin/*" , goroot ))
1599
+ if err != nil {
1600
+ fatalf ("glob: %v" , err )
1601
+ }
1602
+
1596
1603
ok := map [string ]bool {}
1597
1604
for _ , f := range oldBinFiles {
1598
1605
ok [f ] = true
You can’t perform that action at this time.
0 commit comments