Merge pull request #369 from xushiwei/q

library: strconv
This commit is contained in:
xushiwei
2024-06-20 11:09:43 +08:00
committed by GitHub
5 changed files with 51 additions and 12 deletions

View File

@@ -726,6 +726,9 @@ func decodeFile(outFile string, zipf *zip.File) (err error) {
}
func canSkipToBuild(pkgPath string) bool {
if _, ok := hasAltPkg[pkgPath]; ok {
return false
}
switch pkgPath {
case "unsafe":
return true
@@ -738,16 +741,17 @@ func canSkipToBuild(pkgPath string) bool {
type none struct{}
var hasAltPkg = map[string]none{
"errors": {},
"io": {},
"io/fs": {},
"math": {},
"math/cmplx": {},
"sync": {},
"sync/atomic": {},
"syscall": {},
"os": {},
"runtime": {},
"errors": {},
"internal/bytealg": {},
"io": {},
"io/fs": {},
"math": {},
"math/cmplx": {},
"sync": {},
"sync/atomic": {},
"syscall": {},
"os": {},
"runtime": {},
}
func check(err error) {