File allow-binary-only-packages.patch of Package go1.10.15822

Index: go/src/cmd/go/internal/load/pkg.go
===================================================================
--- go.orig/src/cmd/go/internal/load/pkg.go
+++ go/src/cmd/go/internal/load/pkg.go
@@ -449,7 +449,7 @@
 			// Not vendoring, or we already found the vendored path.
 			buildMode |= build.IgnoreVendor
 		}
-		bp, err := cfg.BuildContext.Import(path, srcDir, buildMode)
+		bp, err := cfg.BuildContext.Import(path, srcDir, build.AllowBinary|buildMode)
 		bp.ImportPath = importPath
 		if cfg.GOBIN != "" {
 			bp.BinDir = cfg.GOBIN
openSUSE Build Service is sponsored by