loader, iter: add shim for go1.22 and earlier

This commit is contained in:
Randy Reddig
2025-03-08 21:11:08 -08:00
committed by Ron Evans
parent 05fc49a0cf
commit a2be2f3330
2 changed files with 21 additions and 0 deletions
+4
View File
@@ -261,6 +261,10 @@ func pathsToOverride(goMinor int, needsSyscallPackage bool) map[string]bool {
"unique/": false,
}
if goMinor <= 22 {
paths["iter]"] = false
}
if goMinor >= 19 {
paths["crypto/internal/"] = true
paths["crypto/internal/boring/"] = true