]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1] go/build: correct shouldBuild bug reading whole contents of...
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Fri, 21 Sep 2012 19:54:35 +0000 (05:54 +1000)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Fri, 21 Sep 2012 19:54:35 +0000 (05:54 +1000)
commitbe1207e73511a93f9ae9b9321afc4ef8ee20692a
treeb1c6fac2a369b28f2a8891ab0d9a3ab12be00d8a
parentab4821d468aa6b8d22e5ef935aa4945d4203a5f1
[release-branch.go1] go/build: correct shouldBuild bug reading whole contents of file.

««« backport 307fafbc2d6f
go/build: correct shouldBuild bug reading whole contents of file.

It was caused by bytes.TrimSpace being able to return a nil
slice.

Fixes #3914.

R=golang-dev, r
CC=golang-dev, remy
https://golang.org/cl/6458091

»»»
src/pkg/go/build/build.go
src/pkg/go/build/build_test.go