question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support git submodules

See original GitHub issue

This 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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mbolivar-nordiccommented, Dec 1, 2020

I think I would prefer to start with a submodules: true (which defaults to false) to update the submodules as well with git submodule update or so, before we go crazy with allow or blocklists.

0reactions
tejlmandcommented, Jan 11, 2021

I think I would prefer to start with a submodules: true (which defaults to false) to update the submodules as well with git 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-L114

    - name: cmock
      path: test/cmock
      revision: c243b9a7a7b3c471023193992b46cf1bd1910450
      remote: throwtheswitch
    - name: unity
      path: test/cmock/vendor/unity
      revision: 031f3bbe45f8adf504ca3d13e6f093869920b091
      remote: throwtheswitch

where 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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found