Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#53694 - [go] go tool trace does not work: /usr/lib/go/misc/trace is missing

Attached to Project: Arch Linux
Opened by Alexander Neumann (fd0) - Monday, 17 April 2017, 10:30 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Friday, 21 April 2017, 07:00 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Bartłomiej Piotrowski (Barthalion)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

The command "go tool trace" does not work: The web server for viewing the trace is started, but only a blank page is shown when the "view trace" link is clicked (request path is "/trace"). Turns out, the web server started internally is unable to find the file trace_viewer_lean.html which is expected to reside in $GOROOT/misc/trace, but the "misc" dir is not part of the Arch go package.

Additional info:
* package version: 2:1.8.1-1

Steps to reproduce:

* create trace file (e.g. by using https://github.com/pkg/profile)
* run "go tool trace /tmp/profile426676919/trace.out"
* wait until the browser opens
* click "view trace", see a blank page
* in the browser's console you can see that the path "/trace_viewer_html" is requested but the server returns 404

The attached patch includes the "misc" dir in the go package, which makes the trace tool usable.
This task depends upon

Closed by  Bartłomiej Piotrowski (Barthalion)
Friday, 21 April 2017, 07:00 GMT
Reason for closing:  Fixed
Additional comments about closing:  1.8.1-2
Comment by Pierre Neidhardt (Ambrevar) - Wednesday, 19 April 2017, 16:54 GMT
That's correct, as confirmed by https://groups.google.com/forum/#!topic/golang-nuts/B7sZrDhhWfw

I think I am the one to blame for removing this folder in the first place, sorry for that :p
Comment by Alexander Neumann (fd0) - Wednesday, 19 April 2017, 17:28 GMT
So, what can we do? Who can update the package?

Are there maybe other directories that are not included (but should be)?
Comment by Pierre Neidhardt (Ambrevar) - Wednesday, 19 April 2017, 17:48 GMT
I am one of the former packagers, Barthalion took over maintainance recently.
I cannot think of anything else missing, but who knows...
Comment by Bartłomiej Piotrowski (Barthalion) - Wednesday, 19 April 2017, 17:59 GMT
It's been only 2 days… I will take care of it tomorrow.
Comment by Alexander Neumann (fd0) - Wednesday, 19 April 2017, 18:26 GMT
Oh, sorry, my comment came out too accusatory. I just wanted to see if there's anything I can do :)

Thanks for your work!

Loading...