Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2018-01-15 Thread Osamu Aoki
Hi, On Sun, Jan 14, 2018 at 08:25:05PM +0100, Michael Stapelberg wrote: > Thanks for your work on this! > > I gave the attached patch a shot, and it seems to work fine for me. I tried it > on two packages: > > “upspin” (untagged git, non-GitHub host, Files-Excluded in debian/copyright): > > #

Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2018-01-14 Thread Michael Stapelberg
Thanks for your work on this! I gave the attached patch a shot, and it seems to work fine for me. I tried it on two packages: “upspin” (untagged git, non-GitHub host, Files-Excluded in debian/copyright): # uscan(1) configuration file. version=4 opts="mode=git,pgpmode=none" \

Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2018-01-13 Thread Osamu Aoki
Hi, On Thu, Jan 11, 2018 at 09:56:01AM +0100, Michael Stapelberg wrote: > Happy new year! > > Osamu, any update on this? We’re still really interested. In progress ... partially working I need to clean up codes ;-) I also need couple test cases to test these out. git served from github, git

Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2018-01-11 Thread Michael Stapelberg
Happy new year! Osamu, any update on this? We’re still really interested. On Fri, Oct 13, 2017 at 7:06 PM, Michael Stapelberg wrote: > Almost a month has passed. What’s the current status? The pkg-go group > is still eagerly waiting for this. If there is any way we can

Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2017-10-13 Thread Michael Stapelberg
Almost a month has passed. What’s the current status? The pkg-go group is still eagerly waiting for this. If there is any way we can help, please let us know. On Mon, Sep 18, 2017 at 3:04 AM, Osamu Aoki wrote: > Hi, > > On Mon, Sep 18, 2017 at 01:20:22PM +0800, Shengjing

Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2017-09-18 Thread Osamu Aoki
Hi, On Mon, Sep 18, 2017 at 01:20:22PM +0800, Shengjing Zhu wrote: > Hi, > > I want to know if it's still possible to support GitHub's commit via > different way, rather than do a `git clone`. > > I find GitHub has RSS feed for the commit, the url is like >

Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2017-09-17 Thread Shengjing Zhu
Hi, I want to know if it's still possible to support GitHub's commit via different way, rather than do a `git clone`. I find GitHub has RSS feed for the commit, the url is like https://github.com/Debian/dh-make-golang/commits/master.atom So uscan can parse that xml feed, and get the commit data,

Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2017-08-11 Thread Osamu Aoki
Hi, On Fri, Aug 11, 2017 at 08:09:39PM +0200, Michael Stapelberg wrote: > Ah, thanks for the correction. In that case, we should probably try a shallow > clone first, then fall back to a non-shallow clone :). That's my plan. The same thing can be said for existing git archive command. So I am

Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2017-08-11 Thread Michael Stapelberg
Ah, thanks for the correction. In that case, we should probably try a shallow clone first, then fall back to a non-shallow clone :). On Fri, Aug 11, 2017 at 7:41 PM, Shengjing Zhu wrote: > On Fri, Aug 11, 2017 at 9:55 PM, Michael Stapelberg > wrote: > > I

Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2017-08-11 Thread Shengjing Zhu
On Fri, Aug 11, 2017 at 9:55 PM, Michael Stapelberg wrote: > I think the git HTTP transport does never allow shallow clones. You can use > the git transport protocol (also with GitHub), but note that the git > transport protocol is not authenticated (whereas https is, of

Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2017-08-11 Thread Michael Stapelberg
I think the git HTTP transport does never allow shallow clones. You can use the git transport protocol (also with GitHub), but note that the git transport protocol is not authenticated (whereas https is, of course). So, I think the solution is to only use --depth=1 for git:// URLs. For GitHub,

Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2017-08-11 Thread Osamu Aoki
Hi, On Thu, Aug 10, 2017 at 09:37:33AM +0200, Michael Stapelberg wrote: > Here’s an example: https://github.com/Debian/dh-make-golang/. The > corresponding Tested ... $ git clone --depth=1 --bare https://github.com/Debian/dh-make-golang/ boo Cloning into bare repository 'boo'... remote:

Bug#811565: [pkg-go] Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2017-08-10 Thread Michael Stapelberg
On Thu, Aug 10, 2017 at 9:34 AM, Osamu Aoki wrote: > Hi, > > On Thu, Aug 10, 2017 at 08:19:20AM +0200, Michael Stapelberg wrote: > > On Thu, Aug 10, 2017 at 6:50 AM, Osamu Aoki wrote: > > > > The functionality in the tool is exactly what was already

Bug#811565: [pkg-go] Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2017-08-10 Thread Osamu Aoki
Hi, On Thu, Aug 10, 2017 at 08:19:20AM +0200, Michael Stapelberg wrote: > On Thu, Aug 10, 2017 at 6:50 AM, Osamu Aoki wrote: > > The functionality in the tool is exactly what was already communicated in the > bug :). > > If you need any help with that bug, just let me know.

Bug#811565: [pkg-go] Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2017-08-10 Thread Michael Stapelberg
On Thu, Aug 10, 2017 at 6:50 AM, Osamu Aoki wrote: > Hi, > > > On Wed, Aug 09, 2017 at 07:54:05AM -0700, Michael Stapelberg wrote: > > Thanks for sharing your tool! > > Thank you but I don't use go nor perl regulary :-( I wish uscan was in > Python.) > > But supporting github

Bug#811565: [pkg-go] Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2017-08-09 Thread Osamu Aoki
Hi, On Wed, Aug 09, 2017 at 07:54:05AM -0700, Michael Stapelberg wrote: > Thanks for sharing your tool! Thank you but I don't use go nor perl regulary :-( I wish uscan was in Python.) But supporting github for go or other project is high on my list. >

Bug#811565: [pkg-go] Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2017-08-09 Thread Michael Stapelberg
On Wed, Aug 9, 2017 at 6:54 PM, Shengjing Zhu wrote: > Thanks for the comment. > > On Wed, Aug 9, 2017 at 10:54 PM, Michael Stapelberg > wrote: > > 1. I think that infrastructure which the pkg-go team critically and very > > visibly depends on should

Bug#811565: [pkg-go] Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2017-08-09 Thread Shengjing Zhu
Thanks for the comment. On Wed, Aug 9, 2017 at 10:54 PM, Michael Stapelberg wrote: > 1. I think that infrastructure which the pkg-go team critically and very > visibly depends on should eventually be hosted by DSA under debian.org. I > don’t see them hosting this special

Bug#811565: [pkg-go] Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2017-08-09 Thread Michael Stapelberg
Thanks for sharing your tool! I also considered implementing such a tool, but ultimately decided against it for a number of reasons: 1. I think that infrastructure which the pkg-go team critically and very visibly depends on should eventually be hosted by DSA under debian.org. I don’t see them

Bug#811565: [pkg-go] Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2017-08-09 Thread Shengjing Zhu
Hi all, I spent some time playing around GitHub api, and results a small tool, https://github.com/zhsj/git-watch I didn't implement it in uscan. But it can work well with uscan. A demo service is at https://watch.zhsj.me/ Take one of packages I maintained,

Bug#811565: [pkg-go] Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2017-07-30 Thread Martín Ferrari
On 29/07/17 17:44, Michael Stapelberg wrote: > Given that we are talking about repositories which do not use tags, we > could specify --depth=1 when cloning to get a shallow clone, i.e. only > the latest commit. That saves bandwidth and disk space, but has the > downside that we cannot do any

Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2017-07-30 Thread Michael Stapelberg
On Sun, Jul 30, 2017 at 6:10 AM, Osamu Aoki wrote: > Hi, > > (I switched my ISP. No more osamua...@e01.itscom.net Thanks for the > reminder) > > On Sat, Jul 29, 2017 at 06:44:43PM +0200, Michael Stapelberg wrote: > > Hi Osamu, > > > > Sorry for the late reply, and thanks for

Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2017-07-29 Thread Osamu Aoki
Hi, (I switched my ISP. No more osamua...@e01.itscom.net Thanks for the reminder) On Sat, Jul 29, 2017 at 06:44:43PM +0200, Michael Stapelberg wrote: > Hi Osamu, > > Sorry for the late reply, and thanks for looking into this! Replies > inline: It's good time to make feature enhancements now.

Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2017-07-29 Thread Michael Stapelberg
Hi Osamu, Sorry for the late reply, and thanks for looking into this! Replies inline: Osamu Aoki writes: > How should we explicitly specify such variables, I guess it should be > through "opts=..." such as: > > opts="mode=git, pretty=0.0~git%cd.%h, date=%Y%m%d%H%M"

Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2016-06-11 Thread Osamu Aoki
Hi On Sat, Jun 11, 2016 at 02:20:09PM -0400, James McCoy wrote: > $ git log -1 --pretty='format:%cd' --date='format:%Y%m%d' Nice: It seems we can add hush etc as we wish: $ git log -1 --pretty=format:0.0~git%cd.%h --date=format:%Y%m%d%H%M So let's make these as configurable variables with

Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2016-06-11 Thread James McCoy
On Sun, Jun 12, 2016 at 02:47:52AM +0900, Osamu Aoki wrote: > Let me recall your last part of comment again: > > downloading the last object, and parsing it for the date. > > Can you show me this "parsing it for the date" part with an example > shell activity? The below will show the commit date

Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2016-06-11 Thread Osamu Aoki
Hi, On Tue, Jan 19, 2016 at 04:30:01PM -0500, Alexandre Viau wrote: > Package: devscripts > Version: 2.15.10 > Severity: wishlist > Usertags: uscan > > In the Go Packaging Team[1], we face the issue that the Golang community > does not tag releases for library packages. This practice is

Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2016-06-08 Thread Paul Wise
On Tue, 19 Jan 2016 16:30:01 -0500 Alexandre Viau wrote: > It does not have to be this exact versioning scheme, others can work too. I would recommend using the output of `git describe` where there are tags and there is no tag, act as if there were a 0 tag at the root. -- bye, pabs

Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2016-01-20 Thread Michael Stapelberg
Hi Alexandre, Alexandre Viau writes: > This was discussed in dh-make-golang's issue tracker (adding Michael to > CC as he has expressed a friend of his would like to code this): > - https://github.com/Debian/dh-make-golang/issues/8 I’ve checked back with said friend, and his

Bug#811565: [uscan] git mode: allow for scanning repositories without tags

2016-01-19 Thread Alexandre Viau
Package: devscripts Version: 2.15.10 Severity: wishlist Usertags: uscan In the Go Packaging Team[1], we face the issue that the Golang community does not tag releases for library packages. This practice is encouraged by the golang tools and by the community. Whether that is a good thing or not is