Index: go/src/cmd/go/pkg.go =================================================================== --- go.orig/src/cmd/go/pkg.go +++ go/src/cmd/go/pkg.go @@ -264,7 +264,7 @@ func loadImport(path string, srcDir stri // // TODO: After Go 1, decide when to pass build.AllowBinary here. // See issue 3268 for mistakes to avoid. - bp, err := buildContext.Import(path, srcDir, build.ImportComment) + bp, err := buildContext.Import(path, srcDir, build.AllowBinary | build.ImportComment) bp.ImportPath = importPath if gobin != "" { bp.BinDir = gobin