0a35006c8a
- Update to go1.8.1 OBS-URL: https://build.opensuse.org/request/show/491619 OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/go?expand=0&rev=282
14 lines
546 B
Diff
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
|