Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 945941

Summary: dev-go/gopls returns invalid version
Product: Gentoo Linux Reporter: Mike Benson <mike>
Component: Current packagesAssignee: Zac Medico <zmedico>
Status: UNCONFIRMED ---    
Severity: normal CC: douglarek
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
gopls-0.16.2.ebuild

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