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

Michael Stapelberg stapelberg at debian.org
Wed Mar 14 06:37:35 UTC 2018


Thanks for bringing this up.

On Wed, Mar 14, 2018 at 5:04 AM, Arnaud Rebillout <
arnaud.rebillout at collabora.com> wrote:

> 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-bi
> n/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~),
>

Yeah, that seems right to me. golang-any’s requirements are versioned, so
this should do the right thing.

We should likely add a lintian check to catch the subtle mistakes one can
make here, such as accidentally not using an epoch (as discussed in the
other email thread) or depending on golang-<version> directly.


>
> (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
>
>
> _______________________________________________
> Pkg-go-maintainers mailing list
> Pkg-go-maintainers at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers




-- 
Best regards,
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-go-maintainers/attachments/20180314/1e681083/attachment.html>


More information about the Pkg-go-maintainers mailing list