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

Issue 5783079: code review 5783079: cmd/godoc: fix directory read (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by rsc
Modified:
12 years, 2 months ago
Reviewers:
gri
CC:
golang-dev, bradfitz
Visibility:
Public.

Description

cmd/godoc: fix directory read Undo CL 5783076 and apply correct fix. The /doc hack is wrong. The code to handle this case was already there and just needs a simple fix: // We didn't find any directories containing Go files. // If some directory returned successfully, use that. - if len(all) == 0 && first != nil { + if !haveGo { for _, d := range first { haveName[d.Name()] = true all = append(all, d)

Patch Set 1 #

Patch Set 2 : diff -r 7dac9470d5d8 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 7dac9470d5d8 https://go.googlecode.com/hg/ #

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -11 lines) Patch
M src/cmd/godoc/filesystem.go View 1 2 2 chunks +7 lines, -11 lines 0 comments Download

Messages

Total messages: 9
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 2 months ago (2012-03-12 16:37:14 UTC) #1
bradfitz
LGTM Testing this, I notice what a mess /pkg is once you have third-party code ...
12 years, 2 months ago (2012-03-12 16:44:50 UTC) #2
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=d3b4d95279f8 *** cmd/godoc: fix directory read Undo CL 5783076 and apply correct ...
12 years, 2 months ago (2012-03-12 17:10:40 UTC) #3
rsc
If you really wanted to, you could do something like 5797067. But I am not ...
12 years, 2 months ago (2012-03-12 17:25:37 UTC) #4
bradfitz
On Mon, Mar 12, 2012 at 10:25 AM, Russ Cox <rsc@golang.org> wrote: > If you ...
12 years, 2 months ago (2012-03-12 17:35:04 UTC) #5
rsc
On Mon, Mar 12, 2012 at 13:35, Brad Fitzpatrick <bradfitz@golang.org> wrote: > Sounds like a ...
12 years, 2 months ago (2012-03-12 17:36:38 UTC) #6
gri
Can we have different modes for looking at it? - Robert On Mon, Mar 12, ...
12 years, 2 months ago (2012-03-12 17:44:13 UTC) #7
bradfitz
On Mon, Mar 12, 2012 at 10:44 AM, Robert Griesemer <gri@golang.org> wrote: > Can we ...
12 years, 1 month ago (2012-03-12 17:51:10 UTC) #8
rsc
12 years, 1 month ago (2012-03-12 17:55:04 UTC) #9
Let's leave this for after Go 1.
Sign in to reply to this message.

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