[GH-ISSUE #316] /github/workflow/1: line 2: git: command not found #220

Closed
opened 2026-03-01 21:41:27 +03:00 by kerem · 7 comments
Owner

Originally created by @ssbarnea on GitHub (Jul 23, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/316

[gh/lint-1                           ] ⭐  Run Set up Python ${{ matrix.python-version }}
[gh/lint-1                           ]   ☁  git clone 'https://github.com/actions/setup-python' # ref=v1
| /github/workflow/1: line 2: git: command not found
| /github/workflow/1: line 2: git: command not found
| /github/workflow/1: line 2: git: command not found

I wasn't expected to see such an error with a very basic step:

    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v1
      with:
        python-version: ${{ matrix.python-version }}
Originally created by @ssbarnea on GitHub (Jul 23, 2020). Original GitHub issue: https://github.com/nektos/act/issues/316 ``` [gh/lint-1 ] ⭐ Run Set up Python ${{ matrix.python-version }} [gh/lint-1 ] ☁ git clone 'https://github.com/actions/setup-python' # ref=v1 | /github/workflow/1: line 2: git: command not found | /github/workflow/1: line 2: git: command not found | /github/workflow/1: line 2: git: command not found ``` I wasn't expected to see such an error with a very basic step: ``` - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v1 with: python-version: ${{ matrix.python-version }} ```
kerem 2026-03-01 21:41:27 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@myselfhimself commented on GitHub (Aug 20, 2020):

Reproduced today after bash sudo install on linux, git not found

<!-- gh-comment-id:677655863 --> @myselfhimself commented on GitHub (Aug 20, 2020): Reproduced today after bash sudo install on linux, git not found
Author
Owner

@myselfhimself commented on GitHub (Aug 20, 2020):

jobs:
  build:

    runs-on: ubuntu-latest
    strategy:
      max-parallel: 4
      matrix:
        pythonversion: [3.7]

    steps:
    - uses: actions/checkout@v1

    # Prevent running this job on tag-based releases
    - name: Check if Git tag exists
      run: echo "::set-env name=HEAD_TAG::$(git tag --points-at HEAD)"
<!-- gh-comment-id:677656589 --> @myselfhimself commented on GitHub (Aug 20, 2020): ``` jobs: build: runs-on: ubuntu-latest strategy: max-parallel: 4 matrix: pythonversion: [3.7] steps: - uses: actions/checkout@v1 # Prevent running this job on tag-based releases - name: Check if Git tag exists run: echo "::set-env name=HEAD_TAG::$(git tag --points-at HEAD)" ```
Author
Owner

@myselfhimself commented on GitHub (Aug 20, 2020):

[CPython GMIC Debug Python package (Source and Debian/Ubuntu OS compilation)/build] ⭐  Run Check if Git tag exists
| /github/workflow/1: line 2: git: command not found

<!-- gh-comment-id:677656766 --> @myselfhimself commented on GitHub (Aug 20, 2020): ``` [CPython GMIC Debug Python package (Source and Debian/Ubuntu OS compilation)/build] ⭐ Run Check if Git tag exists | /github/workflow/1: line 2: git: command not found ```
Author
Owner

@tom-moran commented on GitHub (Aug 26, 2020):

have you tried running act with a runner image, which has a large list of tools included e.g.
act -P ubuntu-18.04=nektos/act-environments-ubuntu:18.04
see https://github.com/nektos/act#use-an-alternative-runner-image

<!-- gh-comment-id:680842672 --> @tom-moran commented on GitHub (Aug 26, 2020): have you tried running act with a runner image, which has a large list of tools included e.g. `act -P ubuntu-18.04=nektos/act-environments-ubuntu:18.04` see https://github.com/nektos/act#use-an-alternative-runner-image
Author
Owner

@myselfhimself commented on GitHub (Aug 26, 2020):

yes it worked thanks

st 26. 8. 2020 v 14:16 odesílatel Tom Moran notifications@github.com
napsal:

have you tried running act with a runner image, which has a large list of
tools included e.g.
act -P ubuntu-18.04=nektos/act-environments-ubuntu:18.04


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/nektos/act/issues/316#issuecomment-680842672, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJU5QQD46E4HEY4QNMCVFTSCT4IJANCNFSM4PFOHNSQ
.

<!-- gh-comment-id:680983530 --> @myselfhimself commented on GitHub (Aug 26, 2020): yes it worked thanks st 26. 8. 2020 v 14:16 odesílatel Tom Moran <notifications@github.com> napsal: > have you tried running act with a runner image, which has a large list of > tools included e.g. > act -P ubuntu-18.04=nektos/act-environments-ubuntu:18.04 > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > <https://github.com/nektos/act/issues/316#issuecomment-680842672>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAJU5QQD46E4HEY4QNMCVFTSCT4IJANCNFSM4PFOHNSQ> > . >
Author
Owner

@github-actions[bot] commented on GitHub (Oct 26, 2020):

Issue is stale and will be closed in 7 days unless there is new activity

<!-- gh-comment-id:716241296 --> @github-actions[bot] commented on GitHub (Oct 26, 2020): Issue is stale and will be closed in 7 days unless there is new activity
Author
Owner

@github-actions[bot] commented on GitHub (Jan 4, 2021):

Issue is stale and will be closed in 7 days unless there is new activity

<!-- gh-comment-id:753702981 --> @github-actions[bot] commented on GitHub (Jan 4, 2021): Issue is stale and will be closed in 7 days unless there is new activity
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#220
No description provided.