#1054255 UDD/upstream: consider using d/watch from source repository when available

#1054255#5
Date:
2023-10-19 20:24:48 UTC
From:
To:
The uscan results provided by UDD are based on d/watch file from the
latest released version of the package which it fetches using .dsc[1].
While this works, it also means that fixing any existing uscan errors
requires a new release of the package.  This shouldn't be a big issue if
the upstream provides regular releases.  However, for upstream that is
not very active, making a new release just to fix uscan errors may be a
bit overkill.

Alternatively, I wonder whether it can be considered that if the
d/control provides the location of Debian packaging source repository
either through Vcs-* or Dgit, UDD can optionally use that information to
checkout the repository and use the d/watch file there to update uscan
results so that any errors can be fixed through a commit only.

Of course this adds some more complexities and points of failure such as
- invalid Vcs-* or Dgit, or
- broken d/watch in the repo.
In such cases we may just fall back to the old ways to use the d/watch
in the release package which effectively reverts to the current
behavior.

Just wondering whether this is a direction that's worth considering.

[1] https://salsa.debian.org/qa/udd/-/blob/master/rimporters/upstream.rb#L20-35

#1054255#10
Date:
2023-10-19 20:33:29 UTC
From:
To:
I find this an awesome idea.

(... and remotely linked to this I also think that git should be
mandated for all source packages)