support: internal/oserror, io, io/fs

This commit is contained in:
xushiwei
2024-07-11 18:20:12 +08:00
parent 528add4702
commit d0b57535ed
4 changed files with 15 additions and 13 deletions

View File

@@ -664,6 +664,8 @@ func canSkipToBuild(pkgPath string) bool {
switch pkgPath {
case "unsafe":
return true
case "internal/oserror":
return false
default:
return strings.HasPrefix(pkgPath, "internal/") ||
strings.HasPrefix(pkgPath, "runtime/internal/")
@@ -678,18 +680,18 @@ var hasAltPkg = map[string]none{
"internal/abi": {},
"internal/bytealg": {},
"internal/reflectlite": {},
"io": {},
"io/fs": {},
"math": {},
"math/cmplx": {},
"reflect": {},
"sync": {},
"sync/atomic": {},
"syscall": {},
"time": {},
"os": {},
"os/exec": {},
"runtime": {},
//"io": {},
//"io/fs": {},
"math": {},
"math/cmplx": {},
"reflect": {},
"sync": {},
"sync/atomic": {},
"syscall": {},
"time": {},
"os": {},
"os/exec": {},
"runtime": {},
}
var overlayFiles = map[string]string{