<div dir="ltr">Thanks for bringing this up.<br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 14, 2018 at 5:04 AM, Arnaud Rebillout <span dir="ltr"><<a href="mailto:arnaud.rebillout@collabora.com" target="_blank">arnaud.rebillout@collabora.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've seen this line more than once in debian/control, in the Build-Depends field:<br>
<br>
    golang-go (>= 2:1.10~) | golang-1.10-go,<br>
<br>
However, and related to <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891892" rel="noreferrer" target="_blank">https://bugs.debian.org/cgi-bi<wbr>n/bugreport.cgi?bug=891892</a>, I tried to replace this line with simply:<br>
<br>
    golang-1.10-go,<br>
<br>
This actually fails the build: installing only golang-1.10-go does not create the symlink '/usr/bin/go', therefore calling 'go' fails.<br>
<br>
So what would be the correct way to force a version of go ? Wouldn't it be simply:<br>
<br>
    golang-any (>= 2:1.10~),<br></blockquote><div><br></div><div>Yeah, that seems right to me. golang-any’s requirements are versioned, so this should do the right thing.</div><div><br></div><div>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.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
(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).<br>
<br>
Regards,<br>
<br>
  Arnaud<br>
<br>
<br>
______________________________<wbr>_________________<br>
Pkg-go-maintainers mailing list<br>
<a href="mailto:Pkg-go-maintainers@lists.alioth.debian.org" target="_blank">Pkg-go-maintainers@lists.aliot<wbr>h.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers" rel="noreferrer" target="_blank">http://lists.alioth.debian.org<wbr>/cgi-bin/mailman/listinfo/pkg-<wbr>go-maintainers</a></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Best regards,<br>Michael</div>
</div></div>