[pkg-go] mode=git and no tags (Was: debian/watch version 5)

Andreas Tille tille at debian.org
Wed Sep 10 20:25:36 BST 2025


Hi again,

the Gitlab template is checking the tags of the project - great.
Unfortunately some projects do not use tags - specifically in golang
packages this is more or less the normal state.  For instance there
are watch files like in golang-github-jacobsa-timeutil[1]:

version=4
 
opts="mode=git,pretty=0.0~git%cd" \
    https://github.com/jacobsa/timeutil.git HEAD


Any idea how to transform this into a version=5 watch file?  I tried
my luck with

Version: 5
Mode: git
URL: https://github.com/jacobsa/timeutil.git
Pattern: HEAD
Pretty: 0.0~git%cd

but this finishes very quickly and retrieves nothing.  A dedicated
Template for this would be a great help.

Kind regards
    Andreas.

[1] https://salsa.debian.org/go-team/packages/golang-github-jacobsa-timeutil/-/blob/master/debian/watch?ref_type=heads

-- 
https://fam-tille.de



More information about the Pkg-go-maintainers mailing list