Descriptiongo/build: reject directory with only cgo files if cgo not in use
The old test for "no Go files" was p.Name == "", meaning we never
saw a Go package statement. That test fails if there are cgo files
that we parsed (and recorded the package name) but then chose
not to use (because cgo is not available).
Test the actual file lists instead.
Fixes issue 6078.
Patch Set 1 #Patch Set 2 : diff -r 1b195d6fe342 https://code.google.com/p/go/ #Patch Set 3 : diff -r 46fd4ef6c0de https://code.google.com/p/go/ #
Total comments: 1
Patch Set 4 : diff -r ef73acc06701 https://code.google.com/p/go/ #Patch Set 5 : diff -r a74e4a7820d0 https://code.google.com/p/go/ #
MessagesTotal messages: 5
|