Skip to content

Commit 7cec215

Browse files
committed
[dev.cc] cmd/go: fix expansion of cmd
This was supposed to be in the previous CL, but I forgot to 'git rw' it down. Change-Id: Ia5e14ca2c7640f08abbbed1a777a6cf04d71d0e7 Reviewed-on: https://go-review.googlesource.com/5570 Reviewed-by: Russ Cox <[email protected]>
1 parent 271a650 commit 7cec215

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cmd/go/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ func matchPackages(pattern string) []string {
505505
var pkgs []string
506506

507507
for _, src := range buildContext.SrcDirs() {
508-
if pattern == "std" && src != gorootSrc {
508+
if (pattern == "std" || pattern == "cmd") && src != gorootSrc {
509509
continue
510510
}
511511
src = filepath.Clean(src) + string(filepath.Separator)

0 commit comments

Comments
 (0)