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

Issue 6635064: code review 6635064: cmd/go: don't ignore error when 'go clean' (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by minux1
Modified:
11 years, 6 months ago
Reviewers:
anacrolix
CC:
golang-dev, iant2
Visibility:
Public.

Description

cmd/go: don't ignore error when 'go clean' Fixes issue 4208.

Patch Set 1 #

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

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

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

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

Patch Set 6 : diff -r 236ee151d1bc https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -4 lines) Patch
M src/cmd/go/clean.go View 1 2 3 4 5 chunks +14 lines, -4 lines 0 comments Download

Messages

Total messages: 6
minux1
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
11 years, 6 months ago (2012-10-10 16:21:44 UTC) #1
iant2
LGTM On Wed, Oct 10, 2012 at 9:21 AM, <minux.ma@gmail.com> wrote: > Reviewers: golang-dev_googlegroups.com, > ...
11 years, 6 months ago (2012-10-10 17:30:49 UTC) #2
minux1
*** Submitted as http://code.google.com/p/go/source/detail?r=bc50fc903d6e *** cmd/go: don't ignore error when 'go clean' Fixes issue 4208. ...
11 years, 6 months ago (2012-10-10 17:34:38 UTC) #3
anacrolix
On 2012/10/10 16:21:44, minux wrote: > Hello mailto:golang-dev@googlegroups.com (cc: mailto:golang-dev@googlegroups.com), > > I'd like you ...
11 years, 6 months ago (2012-10-10 18:49:16 UTC) #4
iant2
On Wed, Oct 10, 2012 at 11:49 AM, <anacrolix@gmail.com> wrote: > > ENOENT will be ...
11 years, 6 months ago (2012-10-10 18:53:54 UTC) #5
minux1
11 years, 6 months ago (2012-10-11 15:22:51 UTC) #6
On 2012/10/10 18:53:54, iant2 wrote:
> On Wed, Oct 10, 2012 at 11:49 AM,  <mailto:anacrolix@gmail.com> wrote:
> > ENOENT will be ignored when removing files, but now all errors will be
> > shown for failure to remove directories. Have I read this wrong? Is
> > there no way or need to discriminate this error when using RemoveAll? 
> In the directory case the code has already verified that the name
> exists and is a directory, so there should never be an ENOENT error in
> that case.
Also note that according godoc, os.RemoveAll doesn't return an error
when the path can't be found.
Sign in to reply to this message.

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