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

Issue 4235060: code review 4235060: path/filepath: add EvalSymlinks function (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 2 months ago by adg
Modified:
14 years, 2 months ago
Reviewers:
CC:
rsc, niemeyer, r2, rog, iant2, r, golang-dev
Visibility:
Public.

Description

path/filepath: add EvalSymlinks function

Patch Set 1 #

Patch Set 2 : diff -r 611653f358d7 https://go.googlecode.com/hg/ #

Total comments: 10

Patch Set 3 : diff -r 34118d2bd7d3 https://go.googlecode.com/hg/ #

Total comments: 12

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

Total comments: 4

Patch Set 5 : diff -r e791568f2691 https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 82be792fafa3 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 251bbac2eb02 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -5 lines) Patch
M src/pkg/path/filepath/path.go View 1 2 3 4 5 7 chunks +67 lines, -5 lines 0 comments Download
M src/pkg/path/filepath/path_test.go View 1 2 3 4 5 1 chunk +60 lines, -0 lines 0 comments Download

Messages

Total messages: 34
adg
Hello rsc, niemeyer (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years, 2 months ago (2011-03-08 06:57:00 UTC) #1
r2
'expand' isn't a word that comes to mind when i think of symbolic links. (the ...
14 years, 2 months ago (2011-03-08 08:05:51 UTC) #2
adg
On 8 March 2011 19:05, Rob 'Commander' Pike <r@google.com> wrote: > 'expand' isn't a word ...
14 years, 2 months ago (2011-03-08 08:23:35 UTC) #3
rog
Real ? (after realpath(3)) also, i'm not sure that it's correct to call Clean before ...
14 years, 2 months ago (2011-03-08 08:23:56 UTC) #4
adg
On 8 March 2011 19:23, roger peppe <rogpeppe@gmail.com> wrote: > Real ? (after realpath(3)) Real ...
14 years, 2 months ago (2011-03-08 08:51:49 UTC) #5
adg
On 8 March 2011 19:51, Andrew Gerrand <adg@golang.org> wrote: > You're right, I think. I ...
14 years, 2 months ago (2011-03-08 08:58:06 UTC) #6
rog
http://codereview.appspot.com/4235060/diff/4/src/pkg/path/filepath/path.go File src/pkg/path/filepath/path.go (right): http://codereview.appspot.com/4235060/diff/4/src/pkg/path/filepath/path.go#newcode195 src/pkg/path/filepath/path.go:195: if err != nil { i'm wondering whether it ...
14 years, 2 months ago (2011-03-08 09:24:52 UTC) #7
rog
http://codereview.appspot.com/4235060/diff/4/src/pkg/path/filepath/path_test.go File src/pkg/path/filepath/path_test.go (right): http://codereview.appspot.com/4235060/diff/4/src/pkg/path/filepath/path_test.go#newcode415 src/pkg/path/filepath/path_test.go:415: {"test/link2/link3/test", "test"}, it would be good to have some ...
14 years, 2 months ago (2011-03-08 09:27:36 UTC) #8
adg
Thanks, rog. http://codereview.appspot.com/4235060/diff/4/src/pkg/path/filepath/path.go File src/pkg/path/filepath/path.go (right): http://codereview.appspot.com/4235060/diff/4/src/pkg/path/filepath/path.go#newcode195 src/pkg/path/filepath/path.go:195: if err != nil { On 2011/03/08 ...
14 years, 2 months ago (2011-03-08 10:11:50 UTC) #9
rog
http://codereview.appspot.com/4235060/diff/4/src/pkg/path/filepath/path.go File src/pkg/path/filepath/path.go (right): http://codereview.appspot.com/4235060/diff/4/src/pkg/path/filepath/path.go#newcode195 src/pkg/path/filepath/path.go:195: if err != nil { On 2011/03/08 10:11:50, adg ...
14 years, 2 months ago (2011-03-08 10:44:30 UTC) #10
rsc
http://codereview.appspot.com/4235060/diff/4/src/pkg/path/filepath/path.go File src/pkg/path/filepath/path.go (right): http://codereview.appspot.com/4235060/diff/4/src/pkg/path/filepath/path.go#newcode203 src/pkg/path/filepath/path.go:203: return "", os.NewError("unexpected path element: " + p) doesn't ...
14 years, 2 months ago (2011-03-08 16:07:14 UTC) #11
rsc
Should guard against infinite loops, does not. Real is a vague name, despite the C ...
14 years, 2 months ago (2011-03-08 16:09:40 UTC) #12
r2
On Mar 8, 2011, at 1:24 AM, rogpeppe@gmail.com wrote: > > http://codereview.appspot.com/4235060/diff/4/src/pkg/path/filepath/path.go > File src/pkg/path/filepath/path.go ...
14 years, 2 months ago (2011-03-08 17:12:29 UTC) #13
rsc
ExpandSymlinks
14 years, 2 months ago (2011-03-08 17:14:39 UTC) #14
iant2
FYI Russ Cox <rsc@golang.org> writes: > What is this for? I can't think of any ...
14 years, 2 months ago (2011-03-08 17:30:51 UTC) #15
r2
EvalSymlinks I still don't see the connection between 'expand' and symlinks. One expands 'globs', not ...
14 years, 2 months ago (2011-03-08 17:56:17 UTC) #16
rog
On 8 Mar 2011 16:07, "Russ Cox" <rsc@golang.org> wrote: > > Should guard against infinite ...
14 years, 2 months ago (2011-03-08 20:56:47 UTC) #17
rsc
Always returning an absolute path seems like an unnecessary complication, different from evaluating symbolic links.
14 years, 2 months ago (2011-03-08 21:09:13 UTC) #18
adg
This is for the implementation of GOPATH in goinstall. Goinstall should canonicalize the GOPATH elements ...
14 years, 2 months ago (2011-03-08 23:04:18 UTC) #19
rsc
> This is for the implementation of GOPATH in goinstall. Goinstall > should canonicalize the ...
14 years, 2 months ago (2011-03-08 23:10:27 UTC) #20
adg
On 9 March 2011 10:10, Russ Cox <rsc@golang.org> wrote: >> This is for the implementation ...
14 years, 2 months ago (2011-03-08 23:20:16 UTC) #21
rsc
Ok. EvalSymlinks is still a better name than Real.
14 years, 2 months ago (2011-03-11 14:30:52 UTC) #22
adg
Hello rsc, niemeyer, r2, rog, iant2 (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 2 months ago (2011-03-15 06:08:04 UTC) #23
rog
http://codereview.appspot.com/4235060/diff/18001/src/pkg/path/filepath/path.go File src/pkg/path/filepath/path.go (right): http://codereview.appspot.com/4235060/diff/18001/src/pkg/path/filepath/path.go#newcode182 src/pkg/path/filepath/path.go:182: i := strings.IndexRune(path, Separator) now that you're not calling ...
14 years, 2 months ago (2011-03-15 08:08:01 UTC) #24
r
http://codereview.appspot.com/4235060/diff/18001/src/pkg/path/filepath/path.go File src/pkg/path/filepath/path.go (right): http://codereview.appspot.com/4235060/diff/18001/src/pkg/path/filepath/path.go#newcode170 src/pkg/path/filepath/path.go:170: // links. If path is relative it will be ...
14 years, 2 months ago (2011-03-15 17:11:34 UTC) #25
rsc
s/CWD/current directory/
14 years, 2 months ago (2011-03-15 17:21:13 UTC) #26
adg
http://codereview.appspot.com/4235060/diff/18001/src/pkg/path/filepath/path.go File src/pkg/path/filepath/path.go (right): http://codereview.appspot.com/4235060/diff/18001/src/pkg/path/filepath/path.go#newcode170 src/pkg/path/filepath/path.go:170: // links. If path is relative it will be ...
14 years, 2 months ago (2011-03-16 06:47:50 UTC) #27
r
http://codereview.appspot.com/4235060/diff/21002/src/pkg/path/filepath/path.go File src/pkg/path/filepath/path.go (right): http://codereview.appspot.com/4235060/diff/21002/src/pkg/path/filepath/path.go#newcode180 src/pkg/path/filepath/path.go:180: return "", os.NewError("links to deep to follow") s/to/too/ but ...
14 years, 2 months ago (2011-03-17 01:22:23 UTC) #28
adg
http://codereview.appspot.com/4235060/diff/21002/src/pkg/path/filepath/path.go File src/pkg/path/filepath/path.go (right): http://codereview.appspot.com/4235060/diff/21002/src/pkg/path/filepath/path.go#newcode180 src/pkg/path/filepath/path.go:180: return "", os.NewError("links to deep to follow") On 2011/03/17 ...
14 years, 2 months ago (2011-03-17 01:31:24 UTC) #29
r2
On Mar 16, 2011, at 6:31 PM, adg@golang.org wrote: > > http://codereview.appspot.com/4235060/diff/21002/src/pkg/path/filepath/path.go > File src/pkg/path/filepath/path.go ...
14 years, 2 months ago (2011-03-17 04:35:58 UTC) #30
adg
On 17 March 2011 15:35, Rob 'Commander' Pike <r@google.com> wrote: > Why? It's easy and ...
14 years, 2 months ago (2011-03-17 04:43:10 UTC) #31
adg
Hello rsc, niemeyer, r2, rog, iant2, r (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 2 months ago (2011-03-17 04:50:50 UTC) #32
r
LGTM
14 years, 2 months ago (2011-03-17 04:55:34 UTC) #33
adg
14 years, 2 months ago (2011-03-17 05:36:40 UTC) #34
*** Submitted as http://code.google.com/p/go/source/detail?r=b66a58a1a5e8 ***

path/filepath: add EvalSymlinks function

R=rsc, niemeyer, r2, rog, iant2, r
CC=golang-dev
http://codereview.appspot.com/4235060
Sign in to reply to this message.

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