I have tracked this down. Two things combine here.

1) The Version-Constraint line in my watch file is wrong.

debian-watch(5) lists Version-Constraint under "Component options":

    Add a constraint when downloading the component. Only one value is
    accepted for now: same, version must be identic as main source
    version

and the GitHub template (uscan-templates(5)) accepts Dist or
Owner/Project plus Release-Only, Version-Type and Custom-Version.
"Version-Constraint: refs/tags/@ANY_VERSION@" is therefore not a valid
value, and it is redundant as well, because the template already
queries .../git/matching-refs/tags/. Dropping the line makes
--download-current-version work again.

2) uscan accepts the invalid value silently and then uses it as the
version to download.

So the bug is just acceptance of an invalid value.

Sincerely,
Joachim

Reply via email to