runtime/internal/lib/os: fix readdir for darwin-amd64

This commit is contained in:
visualfc
2025-08-26 17:15:43 +08:00
parent cf2d1ef9ca
commit 69fe6d6377
8 changed files with 76 additions and 32 deletions

View File

@@ -13,7 +13,17 @@ func main() {
if len(entries) == 0 {
panic("No files found")
}
var check int
for _, e := range entries {
fmt.Printf("%s isDir[%t]\n", e.Name(), e.IsDir())
if !e.IsDir() {
switch e.Name() {
case "go.sum", "go.mod":
check++
}
}
}
if check != 2 {
panic("Bad readdir entries go.mod/go.sum")
}
}