Files
visor/tools/go-allow-internal.patch
Ryan El KochtaandgVisor bot 3c09b192f9 Increase minimum Go version to 1.26.3
As part of supporting uid/gid-mapped mounts, we need (*Process).WithHandle,
added in Go 1.26. We can bump the Go version now to catch any issues that may
arise.

PiperOrigin-RevId: 921600692
2026-05-26 11:58:42 -07:00

13 lines
762 B
Diff

diff --git a/src/cmd/go/internal/load/pkg.go b/src/cmd/go/internal/load/pkg.go
index e2a77d7..fec9756 100644
--- a/src/cmd/go/internal/load/pkg.go
+++ b/src/cmd/go/internal/load/pkg.go
@@ -1465,6 +1465,7 @@ func reusePackage(p *Package, stk *ImportStack) *Package {
// If the import is allowed, disallowInternal returns the original package p.
// If not, it returns a new package containing just an appropriate error.
func disallowInternal(loaderstate *modload.State, ctx context.Context, srcDir string, importer *Package, importerPath string, p *Package, stk *ImportStack) *PackageError {
+ return nil
// golang.org/s/go14internal:
// An import of a path containing the element “internal”
// is disallowed if the importing code is outside the tree