LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File allow-binary-only-packages.patch of Package go (Project devel:languages:go)

diff --git a/src/cmd/go/pkg.go b/src/cmd/go/pkg.go
index 0c0cf07..4c0e450 100644
--- a/src/cmd/go/pkg.go
+++ b/src/cmd/go/pkg.go
@@ -365,7 +365,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