Re: Help fixing or debugging debian/watch
On 24/10/2023 23.52, Carles Pina i Estany wrote:
New user of debian/watch and I cannot see why it reports failure in a
qa.debian.org but I cannot reproduce it.
status: error
warnings: In debian/watch no matching files for watch line https://github.com/kyan001/ping3/tags https://github.com/kyan001/ping3/archive/refs/tags/(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))
The expansion of @ANY_VERSION@ does not contain 'v?' in the older uscan
version running on the server, while it does on the newer uscan you used
locally:
>uscan info: Matching pattern:
>
(?:(?:https://github.com)?\/kyan001\/ping3\/)?https://github.com/kyan001/ping3/archive/refs/tags/(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))
carles@pinux:[debian/unstable]~/git/debian/python-ping3$ cat debian/watch
version=4
https://github.com/kyan001/ping3/tags \
https://github.com/kyan001/ping3/archive/refs/tags/@ANY_VERSION@@ARCHIVE_EXT@
BTW, the uscan manpage suggests this format for github (filenamemangle
omitted to match your example):
version=4
https://github.com/<user>/<project>/tags \
(?:.*?/)?v?@ANY_VERSION@@ARCHIVE_EXT@
i.e. wildcards for the protocol, host and path parts and 'v?' version prefix
Andreas
Reply to: