zephyrproject-rtos/west

Provide option for `west init` or `west update` to fetch all submanifests

aescolar opened this issue · 4 comments

It would be nice having an option/command line switch in west init that would make it fetch all repos which have sub-manifests (projects with import) at init time.
Alternatively it could be a new command line switch to west update which instructs it to fetch those same repos (and nothing else).
Either of these would not (need to) find projects with sub-manifests that are affected by group filters or allow-lists (filtered out).

The aim would be to be able to have a workspace in which west can already work without erroring out, but without the need to pull all repositories content.

An example use-case is the solution to the problem described here:
zephyrproject-rtos/zephyr#55696 (comment)
in which after west init, as the main manifest has a project with a sub-manifest/import, west errors out if one tries to use quite a bit of its functionality (for ex. anything related to manifest, list or status).
A solution to this particular problem, is to either do a full west update pulling all projects (which may be a quite a bit of unnecessary overhead), OR, to do a west update <missing_repos_with_imports> which requires knowledge of which repos are the ones with sub-manifests.