go/allow-binary-only-packages.patch

14 lines
546 B
Diff

diff --git a/src/cmd/go/pkg.go b/src/cmd/go/pkg.go
index 575f187f3b..56e6e29883 100644
--- a/src/cmd/go/pkg.go
+++ b/src/cmd/go/pkg.go
@@ -363,7 +363,7 @@ func loadImport(path, srcDir string, parent *Package, stk *importStack, importPo
// Not vendoring, or we already found the vendored path.
buildMode |= build.IgnoreVendor
}
- bp, err := buildContext.Import(path, srcDir, buildMode)
+ bp, err := buildContext.Import(path, srcDir, build.AllowBinary|buildMode)
bp.ImportPath = importPath
if gobin != "" {
bp.BinDir = gobin