[GH-ISSUE #592] Issue: cgo: exec gcc: exec: "gcc": executable file not found in $PATH #394

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

Originally created by @zhoub on GitHub (Apr 1, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/592

Act version

0.2.17

Expected behaviour

Should be fine as Github Action on web

Actual behaviour

| # github.com/mattn/go-sqlite3
| cgo: exec gcc: exec: "gcc": executable file not found in $PATH

Workflow and/or repository

workflow
name: Go

on:
  push:
    branches: [ dev ]
  pull_request:
    branches: [ dev ]

jobs:

  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2

    - name: Set up Go
      uses: actions/setup-go@v2
      with:
        go-version: 1.15

    - name: Install
      run: go mod vendor

    - name: Build
      run: go build -v ./...

    - name: Test
      run: go test -v ./...

Steps to reproduce

act output

Log

Originally created by @zhoub on GitHub (Apr 1, 2021). Original GitHub issue: https://github.com/nektos/act/issues/592 ## Act version 0.2.17 ## Expected behaviour Should be fine as Github Action on web ## Actual behaviour ``` | # github.com/mattn/go-sqlite3 | cgo: exec gcc: exec: "gcc": executable file not found in $PATH ``` ## Workflow and/or repository <details> <summary>workflow</summary> ```none name: Go on: push: branches: [ dev ] pull_request: branches: [ dev ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set up Go uses: actions/setup-go@v2 with: go-version: 1.15 - name: Install run: go mod vendor - name: Build run: go build -v ./... - name: Test run: go test -v ./... ``` </details> ## Steps to reproduce <!-- Make sure to include command you used to run `act` e.g.: 1. Clone example repo (https://github.com/cplee/github-actions-demo) 2. Enter cloned repo directory 3. Run `act -s SUPER_SECRET=im-a-value` --> ## `act` output <!-- Paste output from your terminal, use `-v` or `--verbose` for richer output --> <details> <summary>Log</summary> ```none ``` </details>
kerem 2026-03-01 21:43:01 +03:00
Author
Owner

@catthehacker commented on GitHub (Apr 1, 2021):

Please provide full log from act.

<!-- gh-comment-id:811791157 --> @catthehacker commented on GitHub (Apr 1, 2021): Please provide full log from `act`.
Author
Owner

@catthehacker commented on GitHub (Apr 1, 2021):

Most likely you used image that doesn't include gcc. Please refer to https://github.com/nektos/act#runner, https://github.com/nektos/act#default-runners-are-intentionally-incomplete and https://github.com/nektos/act#use-an-alternative-runner-image.

<!-- gh-comment-id:812081407 --> @catthehacker commented on GitHub (Apr 1, 2021): Most likely you used image that doesn't include `gcc`. Please refer to https://github.com/nektos/act#runner, https://github.com/nektos/act#default-runners-are-intentionally-incomplete and https://github.com/nektos/act#use-an-alternative-runner-image.
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#394
No description provided.