Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2878)

Issue 6458091: code review 6458091: go/build: correct shouldBuild bug reading whole content... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by remyoudompheng
Modified:
11 years, 8 months ago
Reviewers:
rsc, dfc
CC:
golang-dev, r, remy_archlinux.org
Visibility:
Public.

Description

go/build: correct shouldBuild bug reading whole contents of file. It was caused by bytes.TrimSpace being able to return a nil slice. Fixes issue 3914.

Patch Set 1 #

Patch Set 2 : diff -r 870c00724acc https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 870c00724acc https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r f979026319cc https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -1 line) Patch
M src/pkg/go/build/build.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/go/build/build_test.go View 1 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 8
remyoudompheng
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com, remy@archlinux.org), I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 8 months ago (2012-08-06 20:19:51 UTC) #1
remyoudompheng
Not using backquote strings in the test is a convenience to avoid the test skipping ...
11 years, 8 months ago (2012-08-06 20:20:34 UTC) #2
remyoudompheng
ping
11 years, 8 months ago (2012-08-07 22:21:49 UTC) #3
r
LGTM although i think this code could use a rewrite, this looks like a correct ...
11 years, 8 months ago (2012-08-09 20:32:56 UTC) #4
remyoudompheng
*** Submitted as http://code.google.com/p/go/source/detail?r=307fafbc2d6f *** go/build: correct shouldBuild bug reading whole contents of file. It ...
11 years, 8 months ago (2012-08-09 21:23:06 UTC) #5
dfc
This commit has broken all the amd64 go.crypto/curve25519 builds. For some reason the line // ...
11 years, 8 months ago (2012-08-09 22:38:41 UTC) #6
rsc
On Thu, Aug 9, 2012 at 6:38 PM, Dave Cheney <dave@cheney.net> wrote: > This commit ...
11 years, 8 months ago (2012-08-09 23:36:00 UTC) #7
dfc
11 years, 8 months ago (2012-08-09 23:36:40 UTC) #8
I'll propose a fix now.

On Fri, Aug 10, 2012 at 9:35 AM, Russ Cox <rsc@golang.org> wrote:
> On Thu, Aug 9, 2012 at 6:38 PM, Dave Cheney <dave@cheney.net> wrote:
>> This commit has broken all the amd64 go.crypto/curve25519 builds.
>>
>> For some reason the line
>>
>> // +build !amd64
>>
>> is no longer working.
>
> The +build line must be in the leading sequence of comments and blank
> lines that ends in a blank line.
> So the file should say
>
> // Copyright 2012 The Go Authors. All rights reserved.
> // Use of this source code is governed by a BSD-style
> // license that can be found in the LICENSE file.
>
> // We have a implementation in amd64 assembly so this code is only run on
> // non-amd64 platforms.
> // +build !amd64
>
> package curve25519
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b