aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec/exec.go
diff options
context:
space:
mode:
authorJens Frederich <jfrederich@gmail.com>2014-10-14 23:24:58 -0400
committerRuss Cox <rsc@golang.org>2014-10-14 23:24:58 -0400
commit4f80b50e235dd6e7637cf1b15f450d5c50d5ba9f (patch)
tree00a202a86db87ca1be7c86b85f1e522448097680 /src/os/exec/exec.go
parentff6d0a4df44b24b71df1cfbd29534f54a4b2de17 (diff)
downloadgo-4f80b50e235dd6e7637cf1b15f450d5c50d5ba9f.tar.xz
go/build: Return MultiplePackageError on importing a dir containing multiple packages
When the Import function in go/build encounters a directory without any buildable Go source files, it returns a handy NoGoError. Now if, instead it encounters multiple Go source files from multiple packages, it returns a handy MultiplePackageError. A new test for NoGoError and MultiplePackageError is also provided. Fixes #8286. LGTM=adg, rsc R=bradfitz, rsc, adg CC=golang-codereviews https://golang.org/cl/155050043
Diffstat (limited to 'src/os/exec/exec.go')
0 files changed, 0 insertions, 0 deletions