Skip to content

godoc chokes on symlink #1540

@oerdnj

Description

@oerdnj
What steps will reproduce the problem?
1. Install source files to /usr/share/golang/src
2. Install GOROOT to /usr/lib/golang
3. Create symlink from /usr/share/golang/src to /usr/lib/golang/src
4. Run godoc -http=:6060
5. Point a browser to <URL>:6060/cmd/ (or /pkg/)

What is the expected output?
Full list of commands (or packages) as seen on golang.org including the subdirectories
(for /pkg/) and synopsis.

What do you see instead?
List of directories in /pkg/ or /cmd/ without synopsis.

Which operating system are you using?
Linux, .DEB

Which revision are you using?  (hg identify)
release.2011-02-15

Additional information?
Copying the src directory directly under the /usr/lib/golang/ fixes the problem.

I think the problem is in the index, since the errorneous log output includes following
lines:

2011/02/21 14:56:21 updating index...
2011/02/21 14:56:21 index updated (0s, 0 bytes of source, 0 files, 0 lines, 0 unique
words, 0 spots)

and the correct one should look like this:
2011/02/21 14:58:00 updating index...
2011/02/21 14:58:32 index updated (31.305s, 5506098 bytes of source, 828 files, 202606
lines, 16522 unique words, 322828 spots)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions