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 30bbfad..54d65f9 100644
--- a/src/cmd/go/pkg.go
+++ b/src/cmd/go/pkg.go
@@ -220,7 +220,7 @@ func loadImport(path string, srcDir string, stk *importStack, importPos []token.
 	//
 	// TODO: After Go 1, decide when to pass build.AllowBinary here.
 	// See issue 3268 for mistakes to avoid.
-	bp, err := buildContext.Import(path, srcDir, 0)
+	bp, err := buildContext.Import(path, srcDir, build.AllowBinary)
 	bp.ImportPath = importPath
 	if gobin != "" {
 		bp.BinDir = gobin