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.

Checkout with submodules?

See original GitHub issue

How do I checkout with submodules?

Before the most recent commit to master (https://github.com/actions/checkout/commit/e347bba93bdcadab0b55e4b333254f9bb40bdb0c) I could use submodules:true to checkout with submodules… but it looks like yalls just removed that?

This change caused my most recent Actions checks (https://github.com/NovaMods/nova-renderer/runs/331364250) to fail to checkout

Unless I’m missing something, it seems that yalls updated the checkout action to not support submodules and that broke my Actions check

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:27
  • Comments:19 (2 by maintainers)

github_iconTop GitHub Comments

25reactions
ChristophWurstcommented, Dec 16, 2019

Hey @ericsciple!

Thanks for your fixes in #112. In our organization we have to deal with submodules a lot and thus I would like to kindly ask why the shortcut of with.submodules was removed from v2? I don’t find the

run: |
    auth_header="$(git config --local --get http.https://github.com/.extraheader)"
    git submodule sync --recursive
    git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1

easy to use considering that I maintain many repositories. Would it be possible to revive the with.submodules shortcut?

19reactions
ericsciplecommented, Mar 19, 2020

Thanks all for the feedback! I updated V2 to include the recent submodule/SSH changes from master.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Perform Git Submodule Checkout | phoenixNAP KB
1. Use git clone to copy the repository content to the local machine: git clone [repository-url] · 2. Navigate to the main repository...
Read more >
Git - Submodules - Git SCM
This can be really confusing, so it's a good idea to always git checkout --recurse-submodules when your project has submodules. For older Git...
Read more >
How to checkout old git commit including all submodules ...
You need two commands to achieve this: git checkout *oldcommit* git submodule update --recursive. Update: This answer is outdated as of 2018 ...
Read more >
Clone a git repository with submodules using init and update ...
The list of steps required to clone a Git repository with submodules is: ... The git submodule init and update commands are needed...
Read more >
Checkout submodules · Actions · GitHub Marketplace
Recursively checks out any submodules in your repository. ... You can use the submodules input to the checkout action: steps: - name: Checkout...
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