Control: tags -1 + patch
On Thu, Nov 12, 2026 at 12:32:44PM +0900, Simon Richter wrote:
> Hi,
>
> On 11/12/26 8:12 AM, Agustin Martin wrote:
>
> The problem seems to be that uscan tries to avoid using the working
> directory, except during submodule handling, where it uses whatever is
> currently checked out (so if upstream changes the list of submodules, that
> is ignored as well).
>
> > So, seems that intially submodules were not declared as submodules, but
> > present in the repo. This did not happen when using upstream git repo (what
> > happens when there is no remote defined). If I now add the remote and run
> > "uscan --download-current-version" created upstream tarball contains
> > tests/ contents, but not the contents for other submodules.
> Yes, because now tests/ is a submodule in the current working directory --
> but that is local state influencing the output of uscan, when all we want is
> to use the cached objects -- and what's probably worse, uscan also changes
> local state by attempting to deinitialize and reinitialize the submodules.
Hi, Simon,
Seems you are completely right. With all the above info I think that the
sensible choice is to always use a cloned git repo if submodules are
requested in debian/watch. As you say, even in the best case local state
will be changed.
I have done some approaches and I am attaching a patch with the approach
that seems to be working with plain uscan and makes devscripts build tests
succeed.
What do you think?
Regards,
--
Agustin