#1141574 uscan cannot download explicitly listed recursive submodules

Package:
devscripts
Source:
devscripts
Description:
scripts to make the life of a Debian Package maintainer easier
Submitter:
Simon Richter
Date:
2026-07-06 13:31:02 UTC
Severity:
normal
#1141574#5
Date:
2026-07-06 13:29:33 UTC
From:
To:
Hi,

I have the following watch file:


Version: 5

Mode: git
Source: https://github.com/ngscopeclient/scopehal-apps.git
Matching-Pattern: refs/tags/v(.+)
Git-Pretty: describe
Git-Modules: doc;lib;lib/canvas_ity;lib/log;lib/xptools;src/ImGuiFileDialog;src/imgui;src/imgui-node-editor;src/imgui_markdown;src/nativefiledialog-extended
Compression: xz
Uversion-Mangle: s/-rc/~rc/


The goal is to exclude lib/VkFFT, as that is already packaged in Debian.
However, because "lib" itself is a submodule, which is not checked out yet,
this fails with

error: pathspec 'lib/canvas_ity' did not match any file(s) known to git
error: pathspec 'lib/log' did not match any file(s) known to git
error: pathspec 'lib/xptools' did not match any file(s) known to git

I can solve this for now using Files-Excluded, but I suspect this should be
a valid configuration.

In this particular case, this could also be solved by turning the toplevel
submodules into Components, but this would require a way to select a commit
referenced by a submodule in the main component as the version to download
in the subcomponent, since the projects are not synchronized and not
guaranteed to have matching tags.

   Simon
--- /etc/devscripts.conf ---
Empty.
--- ~/.devscripts --- Not present