Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 945941 - dev-go/gopls returns invalid version
Summary: dev-go/gopls returns invalid version
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-06 02:05 UTC by Mike Benson
Modified: 2024-12-07 01:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,23.50 KB, text/plain)
2024-12-06 02:05 UTC, Mike Benson
Details
gopls-0.16.2.ebuild (gopls-0.16.2.ebuild,730 bytes, application/vnd.gentoo.ebuild)
2024-12-06 06:38 UTC, Leo Douglas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Benson 2024-12-06 02:05:52 UTC
Created attachment 913417 [details]
emerge --info

dev-go/gopls-0.14.2 (which is well behind the current upstream v0.16.2) returns an invalid response to the version command (which causes it to fail in Eclipse)

$ gopls version
golang.org/x/tools/gopls (devel)
    golang.org/x/tools/gopls@(devel)


As a workaround I manually installed the latest version of gopls using go install:

$ go install golang.org/x/tools/gopls@latest
$ go/bin/gopls version
golang.org/x/tools/gopls v0.16.2
Comment 1 Leo Douglas 2024-12-06 06:37:55 UTC
Hi Mike:

Do you want to test the ebuild file of version 0.16.2? I can provide one here, but since I don't use Eclipse, I'm not sure where the problem lies. It could be due to a too low version or an issue with parsing the version string. The only change in this 0.16.2 ebuild is specifying the version number of gopls; otherwise, it will print @devel.

I found that the maintainer of this package is Zac. If he doesn't mind, I can provide a PR, but I'm not sure if he wants to include a deps file (although it's not necessary).
Comment 2 Leo Douglas 2024-12-06 06:38:26 UTC
Created attachment 913419 [details]
gopls-0.16.2.ebuild
Comment 3 Leo Douglas 2024-12-06 06:52:51 UTC
$ ebuild gopls-0.16.2.ebuild manifest clean compile 
$ cd /var/tmp/portage/dev-go/gopls-0.16.2/work/tools-gopls-v0.16.2/gopls/
$ ./gopls version
golang.org/x/tools/gopls 0.16.2