patch: errors (todo)

This commit is contained in:
xushiwei
2024-06-18 13:50:55 +08:00
parent a3197c12a8
commit 7a15cf1157
4 changed files with 28 additions and 3 deletions

View File

@@ -706,7 +706,7 @@ func decodeFile(outFile string, zipf *zip.File) (err error) {
func canSkipToBuild(pkgPath string) bool {
switch pkgPath {
case "unsafe", "errors": // TODO(xsw): remove it
case "unsafe":
return true
default:
return strings.HasPrefix(pkgPath, "internal/") ||
@@ -717,6 +717,7 @@ func canSkipToBuild(pkgPath string) bool {
type none struct{}
var hasAltPkg = map[string]none{
"errors": {},
"math": {},
"sync": {},
"sync/atomic": {},