summaryrefslogtreecommitdiff
path: root/src/crypto
diff options
context:
space:
mode:
authorJens Frederich <jfrederich@gmail.com>2014-10-14 23:24:58 -0400
committerJens Frederich <jfrederich@gmail.com>2014-10-14 23:24:58 -0400
commitf617e5520bbfe677fed06a1fd2bfedd5ef61a5ef (patch)
treed21c8f3f89b14a99650353a0336abd678607b77f /src/crypto
parenta789400a8e4b1ad09076edacc1efeaef2446e619 (diff)
downloadgo-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