[GH-ISSUE #363] error Couldn't find the binary git #256

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

Originally created by @thegostep on GitHub (Sep 8, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/363

one of my npm dependencies resolves with a git link - this does not seem to be supported in act yet works fine in github actions

name: CI

on:
  push:
    branches: [master]
  pull_request:
    branches: [master]

jobs:
  test-contracts:
    name: Test Contracts
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2-beta
        with:
          node-version: "14"
      - run: yarn install
      - run: yarn build
      - run: yarn test
Originally created by @thegostep on GitHub (Sep 8, 2020). Original GitHub issue: https://github.com/nektos/act/issues/363 one of my npm dependencies resolves with a git link - this does not seem to be supported in act yet works fine in github actions ``` name: CI on: push: branches: [master] pull_request: branches: [master] jobs: test-contracts: name: Test Contracts runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2-beta with: node-version: "14" - run: yarn install - run: yarn build - run: yarn test ```
kerem 2026-03-01 21:41:50 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@elfrank commented on GitHub (Sep 9, 2020):

The default image is pretty lean (based on alpine I think) and git isn't included.

I got the same issue and this is what I did:

# download a docker image with more dependencies on it (takes a while)
docker pull nektos/act-environments-ubuntu:18.04

# use -P to run act with the new image
act -P ubuntu-latest=nektos/act-environments-ubuntu:18.04

I had to increase the size of my Docker VM to successfully download and extract the Docker image (in case it fails for you).

Hope that helps :)

<!-- gh-comment-id:689712215 --> @elfrank commented on GitHub (Sep 9, 2020): The default image is pretty lean (based on alpine I think) and `git` isn't included. I got the same issue and this is what I did: ```bash # download a docker image with more dependencies on it (takes a while) docker pull nektos/act-environments-ubuntu:18.04 # use -P to run act with the new image act -P ubuntu-latest=nektos/act-environments-ubuntu:18.04 ``` I had to increase the size of my Docker VM to successfully download and extract the Docker image (in case it fails for you). Hope that helps :)
Author
Owner

@github-actions[bot] commented on GitHub (Nov 9, 2020):

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

<!-- gh-comment-id:723689615 --> @github-actions[bot] commented on GitHub (Nov 9, 2020): 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#256
No description provided.