diff options
author | Jens Frederich <jfrederich@gmail.com> | 2014-10-14 23:24:58 -0400 |
---|---|---|
committer | Jens Frederich <jfrederich@gmail.com> | 2014-10-14 23:24:58 -0400 |
commit | f617e5520bbfe677fed06a1fd2bfedd5ef61a5ef (patch) | |
tree | d21c8f3f89b14a99650353a0336abd678607b77f /src/crypto | |
parent | a789400a8e4b1ad09076edacc1efeaef2446e619 (diff) | |
download | go-f617e5520bbfe677fed06a1fd2bfedd5ef61a5ef.tar.gz |
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 issue 8286.
LGTM=adg, rsc
R=bradfitz, rsc, adg
CC=golang-codereviews
https://codereview.appspot.com/155050043
Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/crypto')
0 files changed, 0 insertions, 0 deletions