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

Issue 112490043: code review 112490043: test/run: always set goos and goarch (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 10 months ago by 0intro
Modified:
10 years, 10 months ago
Reviewers:
aram, bradfitz
CC:
golang-codereviews, aram, gobot, rsc, dave_cheney.net, bradfitz
Visibility:
Public.

Description

test/run: always set goos and goarch Following CL 68150047, the goos and goarch variables are not currently set when the GOOS and GOARCH environment variables are not set. This made the content of the build tag to be ignored in this case. This CL sets goos and goarch to runtime.GOOS and runtime.GOARCH when the GOOS and GOARCH environments variables are not set.

Patch Set 1 #

Patch Set 2 : diff -r a23b4e7ef63b https://code.google.com/p/go #

Patch Set 3 : diff -r a23b4e7ef63b https://code.google.com/p/go #

Total comments: 2

Patch Set 4 : diff -r 82cbf874e066 https://code.google.com/p/go #

Patch Set 5 : diff -r 14c560b87afb https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -2 lines) Patch
M test/run.go View 2 chunks +11 lines, -2 lines 0 comments Download

Messages

Total messages: 10
0intro
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
10 years, 10 months ago (2014-07-20 10:54:54 UTC) #1
0intro
Obviously, go fmt hasn't been ran on test/run.go for a long time. We should probably ...
10 years, 10 months ago (2014-07-20 10:56:30 UTC) #2
aram
LGTM
10 years, 10 months ago (2014-07-20 11:06:39 UTC) #3
0intro
+cc rsc
10 years, 10 months ago (2014-07-20 15:28:18 UTC) #4
gobot
R=rsc@golang.org (assigned by dave@cheney.net)
10 years, 10 months ago (2014-07-21 10:31:52 UTC) #5
dave_cheney.net
one minor comment https://codereview.appspot.com/112490043/diff/40001/test/run.go File test/run.go (right): https://codereview.appspot.com/112490043/diff/40001/test/run.go#newcode77 test/run.go:77: } Please add something like func ...
10 years, 10 months ago (2014-07-21 10:37:36 UTC) #6
0intro
PTAL I haven't changed the two around line 482, since their purpose is just to ...
10 years, 10 months ago (2014-07-21 12:33:03 UTC) #7
0intro
Ping.
10 years, 10 months ago (2014-07-24 11:47:33 UTC) #8
bradfitz
LGTM On Thu, Jul 24, 2014 at 4:47 AM, <0intro@gmail.com> wrote: > Ping. > > ...
10 years, 10 months ago (2014-07-24 15:55:01 UTC) #9
0intro
10 years, 10 months ago (2014-07-24 21:19:02 UTC) #10
*** Submitted as https://code.google.com/p/go/source/detail?r=2a40ee658066 ***

test/run: always set goos and goarch

Following CL 68150047, the goos and goarch
variables are not currently set when the GOOS
and GOARCH environment variables are not set.

This made the content of the build tag to be
ignored in this case.

This CL sets goos and goarch to runtime.GOOS
and runtime.GOARCH when the GOOS and GOARCH
environments variables are not set.

LGTM=aram, bradfitz
R=golang-codereviews, aram, gobot, rsc, dave, bradfitz
CC=golang-codereviews, rsc
https://codereview.appspot.com/112490043
Sign in to reply to this message.

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