godoc can't find standard library source anymore (Go 1.4, wily)

Bug #1469576 reported by James Henstridge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
golang-go.tools (Debian)
Fix Released
Unknown
golang-go.tools (Ubuntu)
New
Undecided
Unassigned

Bug Description

Using the godoc tool to show documentation for standard library packages no longer works on Wily. For example:

    $ godoc net/http
    2015/06/29 09:28:52 open /usr/lib/go/src/pkg/net/http: no such file or directory

I have the golang-src package installed, but it seems that the source for the package is now at /usr/lib/go/src/net/http (note the missing "pkg" directory component). It looks like the Go packages match the source layout for Go 1.4, so perhaps the godoc tool needs to be updated?

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: golang-go.tools 0.0~hg20140703-4
ProcVersionSignature: Ubuntu 3.19.0-20.20-generic 3.19.8
Uname: Linux 3.19.0-20-generic x86_64
ApportVersion: 2.17.3-0ubuntu4
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Jun 29 09:26:03 2015
Dependencies:
 gcc-5-base 5.1.1-12ubuntu1
 libc6 2.21-0ubuntu4
 libgcc1 1:5.1.1-12ubuntu1
 libjs-jquery 1.7.2+dfsg-3ubuntu2
 multiarch-support 2.21-0ubuntu4
InstallationDate: Installed on 2013-10-29 (607 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
SourcePackage: golang-go.tools
UpgradeStatus: Upgraded to wily on 2015-06-13 (15 days ago)

Revision history for this message
James Henstridge (jamesh) wrote :
Changed in golang-go.tools (Debian):
status: Unknown → New
Revision history for this message
James Henstridge (jamesh) wrote :

The version of godoc in this package also seems to be unable to parse the some newer language features used in the standard library. For example:

    $ godoc /usr/lib/go/src/os/exec
    2015/07/10 12:41:04 /target/exec.go:368:6: expected operand, found 'range' (and 3 more errors)

So it really needs to be updated.

Revision history for this message
James Henstridge (jamesh) wrote :

In Debian, it looks like this source package has been renamed to golang-golang-x-tools to account for the move from Mercurial to Git and code.google.com to Github:

https://packages.debian.org/source/sid/golang-golang-x-tools

We might need something even newer to work with the new 1.5 packages though.

Changed in golang-go.tools (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.