actions / actions/checkout

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

Open
#758 9 comments 12 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
8.9k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the workflow with the ghcr.io/kbegiedza/cuda:11.6.0-sdk container and inspect whether Git 2.18 or higher is available in PATH. Then trace actions/checkout@v3's GitHub REST API fallback with recursive submodules; done means the workflow checks out the public submodule successfully or documents the required container setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, git, github, github-actions, typescript
Domain
build-system, ci-cd, devops, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.