<div dir="ltr">Instead of creating additional scripts/tools, could we try to centralize that functionality into either gbp import-orig itself, or dh-make-golang please? <a href="https://github.com/Debian/dh-make-golang/issues/14">https://github.com/Debian/dh-make-golang/issues/14</a> is related, and paultag expressed some interest in this as well recently.<div><br></div><div>As for the issue itself, could you please file a bug at <a href="https://github.com/Debian/dh-make-golang/issues">https://github.com/Debian/dh-make-golang/issues</a> so that the problem is at least documented? Not sure when I’ll have time to look at it more closely, but we should definitely try to solve it.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 17, 2016 at 7:08 AM, Martín Ferrari <span dir="ltr"><<a href="mailto:tincho@tincho.org" target="_blank">tincho@tincho.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 17/11/16 01:54, Potter, Tim (HPE Linux Support) wrote:<br>
<br>
> Indeed! But this is happening during the "go get" phase of dh-make-golang (I think) before<br>
> it strips out the code from the Godeps and vendor directories.<br>
<br>
</span>If it is of any use, yesterday I wrote a script that automatically grabs<br>
a new upstream snapshot from git and names it in a way the gbp<br>
import-orig understands. It is in the pkg-go meta repository.<br>
<br>
It reads the source name from debian/control, and uses either the Source<br>
field in debian/copyright or the Homepage field in debian/control to<br>
clone the git repository. It tries to follow the same versioning format<br>
as the last entry in changelog.<br>
<br>
Real exaple of running it for the golang-goprotobuf package:<br>
<br>
$ get-orig-tgz<br>
Executing `git clone --quiet --bare --depth=1<br>
<a href="https://github.com/golang/protobuf" rel="noreferrer" target="_blank">https://github.com/golang/<wbr>protobuf</a> /tmp/q6Fo7KuPrg/upstream'...<br>
Executing `git --git-dir=/tmp/q6Fo7KuPrg/<wbr>upstream log -1<br>
--date=format:%Y%m%d --format=%h %cd'...<br>
Executing `git --git-dir=/tmp/q6Fo7KuPrg/<wbr>upstream archive<br>
--format=tar.gz --prefix=golang-goprotobuf-0.<wbr>0~git20161116.0.224aaba/<br>
224aaba'...<br>
New upstream tarball for version 0.0~git20161116.0.224aaba saved at<br>
../golang-goprotobuf_0.0~<wbr>git20161116.0.224aaba.orig.<wbr>tar.gz<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Martín Ferrari (Tincho)<br>
<br>
______________________________<wbr>_________________<br>
Pkg-go-maintainers mailing list<br>
<a href="mailto:Pkg-go-maintainers@lists.alioth.debian.org">Pkg-go-maintainers@lists.<wbr>alioth.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.<wbr>org/cgi-bin/mailman/listinfo/<wbr>pkg-go-maintainers</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Best regards,<br>Michael</div>
</div>