[pkg-go] Correct way to require the go version in control file

Arnaud Rebillout arnaud.rebillout at collabora.com
Wed Mar 14 04:04:04 UTC 2018


I've seen this line more than once in debian/control, in the 
Build-Depends field:

     golang-go (>= 2:1.10~) | golang-1.10-go,

However, and related to 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891892, I tried to 
replace this line with simply:

     golang-1.10-go,

This actually fails the build: installing only golang-1.10-go does not 
create the symlink '/usr/bin/go', therefore calling 'go' fails.

So what would be the correct way to force a version of go ? Wouldn't it 
be simply:

     golang-any (>= 2:1.10~),

(notice that I don't even use golang-go anymore, I just use golang-any 
which seem to be the right way from what I understand).

Regards,

   Arnaud




More information about the Pkg-go-maintainers mailing list