Package: dh-make
Version: 2.202503
Severity: normal
Dear Maintainer,
dh-make provides a d/watch example file where the Gitlab example doesn't
work.
While this is not strictly a dh-make issue, it would be useful if the
sample provided actually worked. Considering that uscan(1) doesn't cite
any gitlab examples, dh-make is the only place with such an example.
d/watch.ex example for Gitlab defaults uscan to html mode which requires
an 'href' attribute in the downloaded page.
# GitLab hosted projects.
#opts="filenamemangle=s%(?:.*?)?v?(@ANY_VERSION@@ARCHIVE_EXT@)%@PACKAGE@-$1%"
\
# https://gitlab.com/<user>/<project>/-/tags \
# archive/v?@ANY_VERSION@/<project>-v?\d\S*@ARCHIVE_EXT@
However, it seems the links are only there at runtime (after javascript
runs). Instead, plain mode works with Gitlab's use of
'data-download-links' attributes.
# GitLab hosted projects.
#opts="searchmode=plain" \
# https://gitlab.com/<user>/<project>/-/tags \
# archive/@ANY_VERSION@/<project>-v?\d[\d.]*@ARCHIVE_EXT@
To verify this, compare these lines to what a browser inspect shows if
you open the same page in a browser:
$ curl https://gitlab.com/scarpetta/pdfmixtool/-/tags | grep "archive"
Please consider switching the example to a working one.
Happy to submit an MR instead if that helps.
--
Regards,
Ahmad