diff options
| author | Rob Pike <r@golang.org> | 2018-03-05 16:21:44 +1100 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2018-03-06 01:11:26 +0000 |
| commit | baf3eb1625d64d42d7eacd7d29ad6d1e682553a0 (patch) | |
| tree | 6e00abb294f44365b7ba12d392f16e058c943c9d /src/runtime/mkduff.go | |
| parent | 917e72697e653a9a3be3325e6640e50d2098aa5b (diff) | |
| download | go-baf3eb1625d64d42d7eacd7d29ad6d1e682553a0.tar.xz | |
cmd/doc: make local dot-slash path names work
Before, an argument that started ./ or ../ was not treated as
a package relative to the current directory. Thus
$ cd $GOROOT/src/text
$ go doc ./template
could find html/template as $GOROOT/src/html/./template
is a valid Go source directory.
Fix this by catching such paths and making them absolute before
processing.
Fixes #23383.
Change-Id: Ic2a92eaa3a6328f728635657f9de72ac3ee82afb
Reviewed-on: https://go-review.googlesource.com/98396
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/mkduff.go')
0 files changed, 0 insertions, 0 deletions
