Bug 1117070

Summary: golang cover: wrong path
Product: [Fedora] Fedora Reporter: IanB <bugzilla.blk>
Component: golang-googlecode-toolsAssignee: Vincent Batts <vbatts>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: vbatts
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-15 15:54:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description IanB 2014-07-08 00:38:56 UTC
golang-cover.x86_64 0:0-0.3.hg17c8fe23290a.fc20 puts the 'cover' utility into /usr/bin/cover however the gotest tool looks for it in /usr/lib/golang/pkg/tool/linux_amd64/cover


Attempting to create a coverage profile results in error e.g:

$ go test -coverprofile c.out <pkg name>
go tool: no such tool "cover"; to install:
	go get code.google.com/p/go.tools/cmd/cover


Creating a symbolic link from /usr/bin/cover to /usr/lib/golang/pkg/tool/linux_amd64/cover and running the command again produces the expected result:

$ go test -coverprofile c.out <pkg name>
ok  	<pkg name>	0.141s	coverage: 12.8% of statements

Comment 1 Vincent Batts 2014-08-15 15:54:00 UTC
0-0.7.hg17c8fe23290a.fc20 fixes this, and should be in updates shortly.

http://koji.fedoraproject.org/koji/buildinfo?buildID=552410

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