Bug 1099733 - godoc fails to find packages with golang-1.2.2 update
Summary: godoc fails to find packages with golang-1.2.2 update
Keywords:
Status: CLOSED DUPLICATE of bug 1099074
Alias: None
Product: Fedora
Classification: Fedora
Component: golang-googlecode-tools
Version: 20
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Vincent Batts
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-21 05:25 UTC by David Brown
Modified: 2014-08-19 20:42 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-08-19 20:42:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description David Brown 2014-05-21 05:25:19 UTC
Description of problem:
Version 1.2.2 of golang moved the 'golang/pkg' directory from /usr/lib64/golang to /usr/lib/golang.  The godoc utility is still searching in /usr/lib64/golang, and as a consequence doesn't find any documentation.

Version-Release number of selected component (if applicable):
golang-godoc-0-0.3.hg17c8fe23290a.fc20.x86_64

How reproducible:
always

Steps to Reproduce:
1.  godoc fmt

Actual results:
2014/05/20 22:24:28 open /usr/lib64/golang/src/pkg/fmt: no such file or directory


Expected results:
documentation of the 'fmt' package on stdout

Additional info:
I can work around this with:
  GOROOT=/usr/lib/golang godoc fmt

Comment 1 Victor van Poppelen 2014-06-18 01:11:13 UTC
I keep running into this bug too.

Quick hack:

    su -c sed -i 's/\/usr\/lib64\/golang/\/usr\/lib\/\/\/golang/' /usr/bin/godoc

Comment 2 Vincent Batts 2014-08-15 15:55:03 UTC
(In reply to David Brown from comment #0)
> Description of problem:
> Version 1.2.2 of golang moved the 'golang/pkg' directory from
> /usr/lib64/golang to /usr/lib/golang.  The godoc utility is still searching
> in /usr/lib64/golang, and as a consequence doesn't find any documentation.
> 
> Version-Release number of selected component (if applicable):
> golang-godoc-0-0.3.hg17c8fe23290a.fc20.x86_64
> 
> How reproducible:
> always
> 
> Steps to Reproduce:
> 1.  godoc fmt
> 
> Actual results:
> 2014/05/20 22:24:28 open /usr/lib64/golang/src/pkg/fmt: no such file or
> directory
> 
> 
> Expected results:
> documentation of the 'fmt' package on stdout
> 
> Additional info:
> I can work around this with:
>   GOROOT=/usr/lib/golang godoc fmt


what is your NVR of the golang rpm ?

Comment 3 Vincent Batts 2014-08-19 20:42:32 UTC

*** This bug has been marked as a duplicate of bug 1099074 ***


Note You need to log in before you can comment on or make changes to this bug.