Support git submodules
See original GitHub issueThis issue tracks adding support for projects with git submodules to west.
The overall goal is to clone and update submodules on west update
in addition to the projects that contain them.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
git-submodule Documentation - Git
A repository that was cloned independently and later added as a submodule or old setups have the submodules git directory inside the submodule...
Read more >Git submodule - Atlassian
A git submodule is a record within a host git repository that points to a specific commit in another external repository. Learn more...
Read more >Using submodules in Git - Tutorial - Vogella.com
Submodule support includes support for adding, updating, synchronizing, and cloning submodules. Git allows you to commit, pull and push to these ...
Read more >Working with submodules - The GitHub Blog
Eventually, any interesting software project will come to depend on another project, library, or framework. Git provides submodules to help ...
Read more >Using Git submodules with GitLab CI/CD
Use Git submodules to keep a Git repository as a subdirectory of another Git repository. You can clone another repository into your project...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think I would prefer to start with a
submodules: true
(which defaults tofalse
) to update the submodules as well withgit submodule update
or so, before we go crazy with allow or blocklists.There is already a use-case where
west
is used to clone a single repo, which also happens to be a one submodule out of two. https://github.com/nrfconnect/sdk-nrf/blob/master/west.yml#L107-L114where the
cmock
repo actually contains two submodules:c_exception
unity
so I think there is a use-case for specific list of submodules to clone, in addition to all. (when
true
is given)