From df0f2399297a0ecc1864c85fe144b7488ce8c161 Mon Sep 17 00:00:00 2001 From: Li Jie Date: Sat, 15 Feb 2025 16:10:21 +0800 Subject: [PATCH] runtime: fix patch for testing --- runtime/build.go | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/runtime/build.go b/runtime/build.go index dc6dfe67..381bd46d 100644 --- a/runtime/build.go +++ b/runtime/build.go @@ -1,23 +1,10 @@ package runtime -import ( - "strings" -) - func SkipToBuild(pkgPath string) bool { if _, ok := hasAltPkg[pkgPath]; ok { return false } - if _, ok := supportedInternal[pkgPath]; ok { - return false - } - switch pkgPath { - case "unsafe": - return true - default: - return strings.HasPrefix(pkgPath, "internal/") || - strings.HasPrefix(pkgPath, "runtime/internal/") - } + return pkgPath == "unsafe" } func HasAltPkg(path string) (b bool) { @@ -66,10 +53,3 @@ var hasAltPkg = map[string]none{ "runtime/internal/syscall": {}, "io": {}, } - -var supportedInternal = map[string]none{ - "internal/race": {}, - "internal/stringslite": {}, - "internal/filepathlite": {}, - "internal/fmtsort": {}, -}