Instead of creating additional scripts/tools, could we try to centralize
that functionality into either gbp import-orig itself, or dh-make-golang
please? https://github.com/Debian/dh-make-golang/issues/14 is related, and
paultag expressed some interest in this as well recently.

As for the issue itself, could you please file a bug at
https://github.com/Debian/dh-make-golang/issues 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.

On Thu, Nov 17, 2016 at 7:08 AM, Martín Ferrari <tin...@tincho.org> wrote:

> On 17/11/16 01:54, Potter, Tim (HPE Linux Support) wrote:
>
> > Indeed!  But this is happening during the "go get" phase of
> dh-make-golang (I think) before
> > it strips out the code from the Godeps and vendor directories.
>
> If it is of any use, yesterday I wrote a script that automatically grabs
> a new upstream snapshot from git and names it in a way the gbp
> import-orig understands. It is in the pkg-go meta repository.
>
> It reads the source name from debian/control, and uses either the Source
> field in debian/copyright or the Homepage field in debian/control to
> clone the git repository. It tries to follow the same versioning format
> as the last entry in changelog.
>
> Real exaple of running it for the golang-goprotobuf package:
>
> $ get-orig-tgz
> Executing `git clone --quiet --bare --depth=1
> https://github.com/golang/protobuf /tmp/q6Fo7KuPrg/upstream'...
> Executing `git --git-dir=/tmp/q6Fo7KuPrg/upstream log -1
> --date=format:%Y%m%d --format=%h %cd'...
> Executing `git --git-dir=/tmp/q6Fo7KuPrg/upstream archive
> --format=tar.gz --prefix=golang-goprotobuf-0.0~git20161116.0.224aaba/
> 224aaba'...
> New upstream tarball for version 0.0~git20161116.0.224aaba saved at
> ../golang-goprotobuf_0.0~git20161116.0.224aaba.orig.tar.gz
>
> --
> Martín Ferrari (Tincho)
>
> _______________________________________________
> Pkg-go-maintainers mailing list
> Pkg-go-maintainers@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers
>



-- 
Best regards,
Michael
_______________________________________________
Pkg-go-maintainers mailing list
Pkg-go-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers

Reply via email to