diff options
| author | Jens Frederich <jfrederich@gmail.com> | 2014-10-14 23:24:58 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-10-14 23:24:58 -0400 |
| commit | 4f80b50e235dd6e7637cf1b15f450d5c50d5ba9f (patch) | |
| tree | 00a202a86db87ca1be7c86b85f1e522448097680 /src/os/exec/exec.go | |
| parent | ff6d0a4df44b24b71df1cfbd29534f54a4b2de17 (diff) | |
| download | go-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
