On 26/06/2025 11:45 pm, Jerome BENOIT wrote:
On a up-to-date Sid schroot environment, the following `watch` file====8><-----------------------------------------------------------------------------------version=4opts=mode=git,gitmode=shallow,gitmodules,date=%Y%m%d,pretty=0.0+git%cd.%h,pgpmode=none \https://github.com/styluslabs/Write.git heads/master------------------------------><8=========================================================ends up with the following error message uscan info: Downloading upstream package: Write.git masterfatal: /usr/lib/git-core/git-submodule cannot be used without a working tree.uscan die: 1 at /usr/share/perl5/Devscripts/Uscan/Output.pm line 77. Is a package bug or local misconfiguration ?
I had a look into the error you reported, which is not a misconfiguration at your end. Your watchfile looks good. 1. uscan does not yet support using HEAD or a branch reference with gitmodules. I'll look at implementing this soon. As a workaround, you can use the refs/tags mode instead. 2. @ANY_VERSION@ won’t work with this repository, as upstream’s tags are non-standard: jan-2025, for example. Instead of @ANY_VERSION@, use ([a-z]+-\d+) or similar regex. You might also want to run uscan --download-version <tag> to ensure you get the right version. 3. d/changelog expects the upstream version to start with a digit. I prepended zero to work around this. I recommend asking upstream to start using a numeric versioning system. Hugh