]> Cypherpunks repositories - gostls13.git/commit
go/build: correct shouldBuild bug reading whole contents of file.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Thu, 9 Aug 2012 21:22:51 +0000 (23:22 +0200)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Thu, 9 Aug 2012 21:22:51 +0000 (23:22 +0200)
commitf087764abcba7e041fb5c8c59f6122861b00ddba
tree587026940cd9d5b7742da964a9ba9e3c8a72f481
parent0f2529317f7ab02309589bd493189d6b714f2020
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