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

Issue 176056: code review 176056: Abort doing a clean when $GOROOT isn't set. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 3 months ago by cw
Modified:
15 years, 3 months ago
Reviewers:
CC:
dho, rsc, golang-dev
Visibility:
Public.

Description

Abort doing a clean when $GOROOT isn't set. Doing rm -rf /pkg/.. blindly isn't nice. It could have unintended consequences. Secondly set bash to abort on (unexpected) errors.

Patch Set 1 #

Patch Set 2 : code review 176056: Abort doing a clean when $GOROOT isn't set. #

Total comments: 2

Patch Set 3 : code review 176056: Abort doing a clean when $GOROOT isn't set. #

Patch Set 4 : code review 176056: Abort doing a clean when $GOROOT isn't set. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M src/clean.bash View 1 2 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 6
cw
Hello dho, rsc, r (cc: cw), I'd like you to review the following change.
15 years, 3 months ago (2009-12-11 22:46:30 UTC) #1
dho
LGTM otherwise http://codereview.appspot.com/176056/diff/3/4 File src/clean.bash (right): http://codereview.appspot.com/176056/diff/3/4#newcode12 src/clean.bash:12: Extra space at the end seems unnecessary
15 years, 3 months ago (2009-12-11 22:56:10 UTC) #2
rsc
http://codereview.appspot.com/176056/diff/3/4 File src/clean.bash (right): http://codereview.appspot.com/176056/diff/3/4#newcode9 src/clean.bash:9: echo "\$GOROOT not set" use single quotes instead?
15 years, 3 months ago (2009-12-11 22:58:20 UTC) #3
cw
Hello dho, rsc (cc: golang-dev@googlegroups.com), I'd like you to review the following change.
15 years, 3 months ago (2009-12-11 23:06:13 UTC) #4
rsc
LGTM thanks
15 years, 3 months ago (2009-12-11 23:10:02 UTC) #5
rsc
15 years, 3 months ago (2009-12-13 20:27:22 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=06959cf5ba1b ***

clean.bash: stop if $GOROOT is not set

Doing rm -rf /pkg/.. blindly isn't nice.  It could have
unintended consequences.

Secondly set bash to abort on (unexpected) errors.

R=dho, rsc
CC=golang-dev
http://codereview.appspot.com/176056

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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