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.

Input 'submodules' not supported when falling back to download using the GitHub REST API with standard setup

See original GitHub issue

I’m using standard hosted runner with standard actions/checkout@v3, but action is unable to checkout & pull my public repo submodule. When I executed my pipeline I got: Error: Input 'submodules' not supported when falling back to download using the GitHub REST API. To create a local Git repository instead, add Git 2.18 or higher to the PATH.

It’s pretty weird that I’m using ubuntu-latest (20.04) and don’t have Git >= 2.18 in PATH.

my pipeline:

jobs:
  build-and-test:
    runs-on: ubuntu-latest
    container: ghcr.io/kbegiedza/cuda:11.6.0-sdk

    steps:
    - uses: actions/checkout@v3
      with:
        submodule: recursive

    - name: Configure CMake
      run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

    - name: Build
      run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

    - name: Test
      working-directory: ${{github.workspace}}/build
      run: ctest -C ${{env.BUILD_TYPE}}

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:4
  • Comments:5

github_iconTop GitHub Comments

2reactions
kbegiedzacommented, Apr 12, 2022

Added below step as workaround:

    - name: Checkout submodules
      run: |
        git submodule update --init --recursive
0reactions
andersonjwancommented, Dec 24, 2022

Same issue here! This is my step that fails:

- name: Checkout
  uses: actions/checkout@v3
  with:
     submodules: true
Read more comments on GitHub >

github_iconTop Results From Across the Web

Checkout with submodules? · Issue #81 · actions ... - GitHub
We chose to leave submodules out of the v2 rewrite for two main reasons. First because Actions is a per repository app installation...
Read more >
Behavior changes based on version of git available (uses ...
The repository will be downloaded using the GitHub REST API To create a local Git ... -y sudo apt-get update sudo apt-get install...
Read more >
private submodule checkout fails @v2 · Issue #116 - GitHub
I've private git submodule, which contains our shared i18n resouces, with same organization owner as my main repo I've configured git ...
Read more >
actions/checkout: Action for checking out a repo - GitHub
When Git 2.18 or higher is not in your PATH, falls back to the REST API to download the files. What's new. Updated...
Read more >
Cannot checkout submodules on github.com from a repository ...
I'm using GitHub Enterprise Server (GHES), say https://example.com, and I want to checkout a repository on https://github.com as a git ...
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