[GH-ISSUE #561] Issue: Error: Could not find a part of the path #379

Closed
opened 2026-03-01 21:42:51 +03:00 by kerem · 12 comments
Owner

Originally created by @sophiederosa on GitHub (Mar 11, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/561

Act version

0.2.20


Expected behaviour

I would expect Act can download this action

Actual behaviour

Unable to process command '[integration-tests/designer/freestyle-elephant/build ] ##[add-matcher]/actions/actions-setup-python@v2/.github/python.json' successfully.
Error: Could not find a part of the path '/actions/actions-setup-python@v2/.github/python.json'.

Workflow and/or repository

workflow
name: example workflow

on: [push]
jobs:
set-up-python:
  - name: set up python
        uses: actions/setup-python@v2

Steps to reproduce

act output

Log

Originally created by @sophiederosa on GitHub (Mar 11, 2021). Original GitHub issue: https://github.com/nektos/act/issues/561 <!-- - Make sure you are able to reproduce it on the [latest version](https://github.com/nektos/act/releases) - Search the existing issues. - Refer to [README](https://github.com/nektos/act/blob/master/README.md). --> ## Act version <!-- Paste output of `act --version` --> 0.2.20 ```none ``` ## Expected behaviour <!-- Describe how whole process should go and finish --> I would expect Act can download this action ## Actual behaviour <!-- Describe what happened --> Unable to process command '[integration-tests/designer/freestyle-elephant/build ] ❓ ##[add-matcher]/actions/actions-setup-python@v2/.github/python.json' successfully. Error: Could not find a part of the path '/actions/actions-setup-python@v2/.github/python.json'. ## Workflow and/or repository <details> <summary>workflow</summary> ```none name: example workflow on: [push] jobs: set-up-python: - name: set up python uses: actions/setup-python@v2 ``` </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:42:51 +03:00
Author
Owner

@catthehacker commented on GitHub (Mar 11, 2021):

Is that the correct workflow you are using?

This works fine for me

name: 'Test Platform GH Actions'
on: [push]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: set up python
        uses: actions/setup-python@v2

You could also try removing act cache, rm -rf ~/.cache/act/

<!-- gh-comment-id:796952310 --> @catthehacker commented on GitHub (Mar 11, 2021): Is that the correct workflow you are using? This works fine for me ```yaml name: 'Test Platform GH Actions' on: [push] jobs: test: runs-on: ubuntu-latest steps: - name: set up python uses: actions/setup-python@v2 ``` You could also try removing `act` cache, `rm -rf ~/.cache/act/`
Author
Owner

@sophiederosa commented on GitHub (Mar 11, 2021):

This is the workflow, I just retested it:

on:
  workflow_dispatch:
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: checkout
      uses: actions/checkout@v2
    - name: set up python
      uses: actions/setup-python@v2

Here's a more full output:

[integration-tests/designer/freestyle-elephant-test/build] 🚀  Start image=sophiederosa1/ubuntu-workflows-slim
[integration-tests/designer/freestyle-elephant-test/build]   🐳  docker run image=sophiederosa1/ubuntu-workflows-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[integration-tests/designer/freestyle-elephant-test/build]   🐳  docker cp src=/home/runner/work/valet/valet/. dst=/github/workspace
[integration-tests/designer/freestyle-elephant-test/build] ⭐  Run checkout
[integration-tests/designer/freestyle-elephant-test/build]   ✅  Success - checkout
[integration-tests/designer/freestyle-elephant-test/build] ⭐  Run set up python
[integration-tests/designer/freestyle-elephant-test/build]   ☁  git clone 'https://github.com/actions/setup-python' # ref=v2
[integration-tests/designer/freestyle-elephant-test/build]   🐳  docker cp src=/home/runner/.cache/act/actions-setup-python@v2 dst=/actions/
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::Semantic version spec of 3.x is 3.x
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::isExplicit: 
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::explicit? false
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::evaluating 0 versions
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::match not found
[integration-tests/designer/freestyle-elephant-test/build]   | Version 3.x was not found in the local cache
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::check 3.10.0-alpha.6 satisfies 3.x
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::check 3.10.0-alpha.5 satisfies 3.x
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::check 3.10.0-alpha.4 satisfies 3.x
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::check 3.10.0-alpha.3 satisfies 3.x
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::check 3.10.0-alpha.2 satisfies 3.x
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::check 3.10.0-alpha.1 satisfies 3.x
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::check 3.9.2 satisfies 3.x
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::x64===x64 && darwin===linux
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::x64===x64 && linux===linux
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::x64===x64 && linux===linux
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::x64===x64 && linux===linux
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::matched 3.9.2
[integration-tests/designer/freestyle-elephant-test/build]   | Version 3.x is available for downloading
[integration-tests/designer/freestyle-elephant-test/build]   | Download from "https://github.com/actions/python-versions/releases/download/3.9.2-99799/python-3.9.2-linux-20.04-x64.tar.gz"
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::Downloading https://github.com/actions/python-versions/releases/download/3.9.2-99799/python-3.9.2-linux-20.04-x64.tar.gz
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::Destination /tmp/905cce1b-a9d2-48cf-82f5-624063190e88
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::download complete
[integration-tests/designer/freestyle-elephant-test/build]   | Extract downloaded archive
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::Checking tar --version
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::tar (GNU tar) 1.30%0ACopyright (C) 2017 Free Software Foundation, Inc.%0ALicense GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.%0AThis is free software: you are free to change and redistribute it.%0AThere is NO WARRANTY, to the extent permitted by law.%0A%0AWritten by John Gilmore and Jay Fenlason.
ion-tests/designer/freestyle-elephant-test/build]   | [command]/usr/bin/tar xz --warning=no-unknown-keyword -C /tmp/bf91760c-d567-432c-8e49-28d97332293a -f /tmp/905cce1b-a9d2-48cf-82f5-624063190e88
[integration-tests/designer/freestyle-elephant-test/build]   | Execute installation script
[integration-tests/designer/freestyle-elephant-test/build]   | Check if Python hostedtoolcache folder exist...
[integration-tests/designer/freestyle-elephant-test/build]   | Creating Python hostedtoolcache folder...
[integration-tests/designer/freestyle-elephant-test/build]   | Create Python 3.9.2 folder
[integration-tests/designer/freestyle-elephant-test/build]   | Copy Python binaries to hostedtoolcache folder
[integration-tests/designer/freestyle-elephant-test/build]   | Create additional symlinks (Required for the UsePythonVersion Azure Pipelines task and the setup-python GitHub Action)
[integration-tests/designer/freestyle-elephant-test/build]   | Upgrading PIP...
[integration-tests/designer/freestyle-elephant-test/build]   | Looking in links: /tmp/tmpblx61073
[integration-tests/designer/freestyle-elephant-test/build]   | Requirement already satisfied: setuptools in /opt/hostedtoolcache/Python/3.9.2/x64/lib/python3.9/site-packages (49.2.1)
[integration-tests/designer/freestyle-elephant-test/build]   | Requirement already satisfied: pip in /opt/hostedtoolcache/Python/3.9.2/x64/lib/python3.9/site-packages (20.2.3)
[integration-tests/designer/freestyle-elephant-test/build]   | Collecting pip
[integration-tests/designer/freestyle-elephant-test/build]   | Downloading pip-21.0.1-py3-none-any.whl (1.5 MB)
[integration-tests/designer/freestyle-elephant-test/build]   | Installing collected packages: pip
[integration-tests/designer/freestyle-elephant-test/build]   | Successfully installed pip-21.0.1
[integration-tests/designer/freestyle-elephant-test/build]   | Create complete file
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::isExplicit: 
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::explicit? false
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::isExplicit: 3.9.2
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::explicit? true
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::evaluating 1 versions
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::matched: 3.9.2
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::checking cache: /opt/hostedtoolcache/Python/3.9.2/x64
[integration-tests/designer/freestyle-elephant-test/build]   💬  ::debug::Found tool in cache Python 3.9.2 x64
[integration-tests/designer/freestyle-elephant-test/build]   ⚙  ::add-path:: /opt/hostedtoolcache/Python/3.9.2/x64
[integration-tests/designer/freestyle-elephant-test/build]   ⚙  ::add-path:: /opt/hostedtoolcache/Python/3.9.2/x64/bin
[integration-tests/designer/freestyle-elephant-test/build]   ⚙  ::set-output:: python-version=3.9.2
[integration-tests/designer/freestyle-elephant-test/build]   | Successfully setup CPython (3.9.2)
Error: Unable to process command '[integration-tests/designer/freestyle-elephant-test/build]   ❓  ##[add-matcher]/actions/actions-setup-python@v2/.github/python.json' successfully.
Error: Could not find a part of the path '/actions/actions-setup-python@v2/.github/python.json'.
[integration-tests/designer/freestyle-elephant-test/build]   ✅  Success - set up python

It looks like it is fine, but it fails my workflow :( I'll try clearing the cache, but I'm running it on a Github runner during CI so it is re-downloading act before every run, so I wouldn't imagine that would be the issue

<!-- gh-comment-id:796981328 --> @sophiederosa commented on GitHub (Mar 11, 2021): This is the workflow, I just retested it: ``` on: workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - name: checkout uses: actions/checkout@v2 - name: set up python uses: actions/setup-python@v2 ``` Here's a more full output: ``` [integration-tests/designer/freestyle-elephant-test/build] 🚀 Start image=sophiederosa1/ubuntu-workflows-slim [integration-tests/designer/freestyle-elephant-test/build] 🐳 docker run image=sophiederosa1/ubuntu-workflows-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [integration-tests/designer/freestyle-elephant-test/build] 🐳 docker cp src=/home/runner/work/valet/valet/. dst=/github/workspace [integration-tests/designer/freestyle-elephant-test/build] ⭐ Run checkout [integration-tests/designer/freestyle-elephant-test/build] ✅ Success - checkout [integration-tests/designer/freestyle-elephant-test/build] ⭐ Run set up python [integration-tests/designer/freestyle-elephant-test/build] ☁ git clone 'https://github.com/actions/setup-python' # ref=v2 [integration-tests/designer/freestyle-elephant-test/build] 🐳 docker cp src=/home/runner/.cache/act/actions-setup-python@v2 dst=/actions/ [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::Semantic version spec of 3.x is 3.x [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::isExplicit: [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::explicit? false [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::evaluating 0 versions [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::match not found [integration-tests/designer/freestyle-elephant-test/build] | Version 3.x was not found in the local cache [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::check 3.10.0-alpha.6 satisfies 3.x [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::check 3.10.0-alpha.5 satisfies 3.x [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::check 3.10.0-alpha.4 satisfies 3.x [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::check 3.10.0-alpha.3 satisfies 3.x [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::check 3.10.0-alpha.2 satisfies 3.x [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::check 3.10.0-alpha.1 satisfies 3.x [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::check 3.9.2 satisfies 3.x [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::x64===x64 && darwin===linux [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::x64===x64 && linux===linux [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::x64===x64 && linux===linux [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::x64===x64 && linux===linux [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::matched 3.9.2 [integration-tests/designer/freestyle-elephant-test/build] | Version 3.x is available for downloading [integration-tests/designer/freestyle-elephant-test/build] | Download from "https://github.com/actions/python-versions/releases/download/3.9.2-99799/python-3.9.2-linux-20.04-x64.tar.gz" [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::Downloading https://github.com/actions/python-versions/releases/download/3.9.2-99799/python-3.9.2-linux-20.04-x64.tar.gz [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::Destination /tmp/905cce1b-a9d2-48cf-82f5-624063190e88 [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::download complete [integration-tests/designer/freestyle-elephant-test/build] | Extract downloaded archive [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::Checking tar --version [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::tar (GNU tar) 1.30%0ACopyright (C) 2017 Free Software Foundation, Inc.%0ALicense GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.%0AThis is free software: you are free to change and redistribute it.%0AThere is NO WARRANTY, to the extent permitted by law.%0A%0AWritten by John Gilmore and Jay Fenlason. ion-tests/designer/freestyle-elephant-test/build] | [command]/usr/bin/tar xz --warning=no-unknown-keyword -C /tmp/bf91760c-d567-432c-8e49-28d97332293a -f /tmp/905cce1b-a9d2-48cf-82f5-624063190e88 [integration-tests/designer/freestyle-elephant-test/build] | Execute installation script [integration-tests/designer/freestyle-elephant-test/build] | Check if Python hostedtoolcache folder exist... [integration-tests/designer/freestyle-elephant-test/build] | Creating Python hostedtoolcache folder... [integration-tests/designer/freestyle-elephant-test/build] | Create Python 3.9.2 folder [integration-tests/designer/freestyle-elephant-test/build] | Copy Python binaries to hostedtoolcache folder [integration-tests/designer/freestyle-elephant-test/build] | Create additional symlinks (Required for the UsePythonVersion Azure Pipelines task and the setup-python GitHub Action) [integration-tests/designer/freestyle-elephant-test/build] | Upgrading PIP... [integration-tests/designer/freestyle-elephant-test/build] | Looking in links: /tmp/tmpblx61073 [integration-tests/designer/freestyle-elephant-test/build] | Requirement already satisfied: setuptools in /opt/hostedtoolcache/Python/3.9.2/x64/lib/python3.9/site-packages (49.2.1) [integration-tests/designer/freestyle-elephant-test/build] | Requirement already satisfied: pip in /opt/hostedtoolcache/Python/3.9.2/x64/lib/python3.9/site-packages (20.2.3) [integration-tests/designer/freestyle-elephant-test/build] | Collecting pip [integration-tests/designer/freestyle-elephant-test/build] | Downloading pip-21.0.1-py3-none-any.whl (1.5 MB) [integration-tests/designer/freestyle-elephant-test/build] | Installing collected packages: pip [integration-tests/designer/freestyle-elephant-test/build] | Successfully installed pip-21.0.1 [integration-tests/designer/freestyle-elephant-test/build] | Create complete file [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::isExplicit: [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::explicit? false [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::isExplicit: 3.9.2 [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::explicit? true [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::evaluating 1 versions [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::matched: 3.9.2 [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::checking cache: /opt/hostedtoolcache/Python/3.9.2/x64 [integration-tests/designer/freestyle-elephant-test/build] 💬 ::debug::Found tool in cache Python 3.9.2 x64 [integration-tests/designer/freestyle-elephant-test/build] ⚙ ::add-path:: /opt/hostedtoolcache/Python/3.9.2/x64 [integration-tests/designer/freestyle-elephant-test/build] ⚙ ::add-path:: /opt/hostedtoolcache/Python/3.9.2/x64/bin [integration-tests/designer/freestyle-elephant-test/build] ⚙ ::set-output:: python-version=3.9.2 [integration-tests/designer/freestyle-elephant-test/build] | Successfully setup CPython (3.9.2) Error: Unable to process command '[integration-tests/designer/freestyle-elephant-test/build] ❓ ##[add-matcher]/actions/actions-setup-python@v2/.github/python.json' successfully. Error: Could not find a part of the path '/actions/actions-setup-python@v2/.github/python.json'. [integration-tests/designer/freestyle-elephant-test/build] ✅ Success - set up python ``` It looks like it is fine, but it fails my workflow :( I'll try clearing the cache, but I'm running it on a Github runner during CI so it is re-downloading act before every run, so I wouldn't imagine that would be the issue
Author
Owner

@sophiederosa commented on GitHub (Mar 11, 2021):

Let me also try with a different image

<!-- gh-comment-id:796981503 --> @sophiederosa commented on GitHub (Mar 11, 2021): Let me also try with a different image
Author
Owner

@sophiederosa commented on GitHub (Mar 11, 2021):

I tried using this image: catthehacker/ubuntu:act-20.04 and I'm still seeing the error

<!-- gh-comment-id:796987640 --> @sophiederosa commented on GitHub (Mar 11, 2021): I tried using this image: catthehacker/ubuntu:act-20.04 and I'm still seeing the error
Author
Owner

@catthehacker commented on GitHub (Mar 11, 2021):

Oh ok, that log makes more sense now. I thought that action fails instantly. I think I've seen that issue somewhere already.

<!-- gh-comment-id:796987884 --> @catthehacker commented on GitHub (Mar 11, 2021): Oh ok, that log makes more sense now. I thought that action fails instantly. I think I've seen that issue somewhere already.
Author
Owner

@sophiederosa commented on GitHub (Mar 11, 2021):

Oh okay sorry I didn't include those at first! Do you know what the issue is?

<!-- gh-comment-id:796991084 --> @sophiederosa commented on GitHub (Mar 11, 2021): Oh okay sorry I didn't include those at first! Do you know what the issue is?
Author
Owner

@catthehacker commented on GitHub (Mar 11, 2021):

I cannot remember. What else I can recommend is to prune docker volumes. docker volume prune to remove unused volumes or docker system prune to remove everything what is not used (volumes,containers,images)
I'm also trying out to add tests for MacOS so hopefully I can have some basic testing on that OS.
https://github.com/catthehacker/act-fork/runs/2089570985

<!-- gh-comment-id:797030110 --> @catthehacker commented on GitHub (Mar 11, 2021): I cannot remember. What else I can recommend is to prune docker volumes. `docker volume prune` to remove unused volumes or `docker system prune` to remove everything what is not used (`volumes`,`containers`,`images`) I'm also trying out to add tests for MacOS so hopefully I can have some basic testing on that OS. https://github.com/catthehacker/act-fork/runs/2089570985
Author
Owner

@sophiederosa commented on GitHub (Mar 11, 2021):

Actually running this on ubuntu if that is helpful info! I'll try the docker prune idea!

<!-- gh-comment-id:797043058 --> @sophiederosa commented on GitHub (Mar 11, 2021): Actually running this on ubuntu if that is helpful info! I'll try the docker prune idea!
Author
Owner

@sophiederosa commented on GitHub (Mar 12, 2021):

docker prune wasn't able to help me, so if you remember anything about how to fix this would be really helpful :) thanks!!

<!-- gh-comment-id:797158088 --> @sophiederosa commented on GitHub (Mar 12, 2021): docker prune wasn't able to help me, so if you remember anything about how to fix this would be really helpful :) thanks!!
Author
Owner

@github-actions[bot] commented on GitHub (Apr 12, 2021):

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

<!-- gh-comment-id:817398850 --> @github-actions[bot] commented on GitHub (Apr 12, 2021): Issue is stale and will be closed in 14 days unless there is new activity
Author
Owner

@GabriFedi97 commented on GitHub (Nov 9, 2022):

I'm facing the same issue with the action actions/setup-go@v3:

Error: Unable to process command '[Reusable / DAD_CLI-Build & Push Image/dad cli build & push     ]   ❓  ##[add-matcher]/run/act/actions/actions-setup-go@v3/matchers.json' successfully.
[214](https://github.com/EnterpriseDB/poc/actions/runs/3427890793/jobs/5711443611#step:6:215)
Error: Could not find a part of the path '/run/act/actions/actions-setup-go@v3/matchers.json'.``

Has anyone found a workaround to this?

act version: 0.2.33

<!-- gh-comment-id:1308747475 --> @GabriFedi97 commented on GitHub (Nov 9, 2022): I'm facing the same issue with the action `actions/setup-go@v3`: ``` Error: Unable to process command '[Reusable / DAD_CLI-Build & Push Image/dad cli build & push ] ❓ ##[add-matcher]/run/act/actions/actions-setup-go@v3/matchers.json' successfully. [214](https://github.com/EnterpriseDB/poc/actions/runs/3427890793/jobs/5711443611#step:6:215) Error: Could not find a part of the path '/run/act/actions/actions-setup-go@v3/matchers.json'.`` ``` Has anyone found a workaround to this? `act version: 0.2.33`
Author
Owner

@GabriFedi97 commented on GitHub (Nov 10, 2022):

I finally found the reason and a workaround to the issue. I was running act inside a GitHub workflow in order to test another workflow, having a step using actions/setup-go@v3. The action, just like the other setup-* actions, performs a statement to add a problem matcher in its main.ts. In my case, the execution's output of that line was:

##[add-matcher]/run/act/actions/actions-setup-go@v3/matchers.json.

That was interpreted by the GitHub runners as a legit add-matcher instruction, so it proceeded trying to add the problem matcher, relying on the file /run/act/actions/actions-setup-go@v3/matchers.json. However, that file was present only in the container created by act and not on the Host runner, so it ended up throwing the following error:

Error: Could not find a part of the path '/run/act/actions/actions-setup-go@v3/matchers.json'.

Workaround:

According to the Echoing of Command Input documentation of Github runners, the output keywords that could affect the execution of act, inside a workflow, are:

  • remove-matcher
  • add-matcher
  • add-path

So filtering away the lines containing those keywords, from the act output, worked for me:

act [event name to run] [flags] | grep -v "remove-matcher\|add-matcher\|add-path"

<!-- gh-comment-id:1310585919 --> @GabriFedi97 commented on GitHub (Nov 10, 2022): I finally found the reason and a workaround to the issue. I was running `act` inside a GitHub workflow in order to test another workflow, having a step using `actions/setup-go@v3`. The action, just like the other `setup-*` actions, performs a statement to add a [problem matcher](https://github.com/actions/toolkit/blob/main/docs/problem-matchers.md) in its [main.ts](https://github.com/actions/setup-go/blob/27b43e1b0d324a64f8fcc14f931e45ae178f6b19/src/main.ts#L64). In my case, the execution's output of that line was: `##[add-matcher]/run/act/actions/actions-setup-go@v3/matchers.json`. That was interpreted by the GitHub runners as a legit add-matcher instruction, so it proceeded trying to add the problem matcher, relying on the file `/run/act/actions/actions-setup-go@v3/matchers.json`. However, that file was present only in the container created by `act` and not on the Host runner, so it ended up throwing the following error: `Error: Could not find a part of the path '/run/act/actions/actions-setup-go@v3/matchers.json'.` **Workaround:** According to the [Echoing of Command Input](https://github.com/actions/runner/blob/be9632302ceef50bfb36ea998cea9c94c75e5d4d/docs/adrs/0280-command-input-echoing.md) documentation of Github runners, the output keywords that could affect the execution of `act`, inside a workflow, are: - `remove-matcher` - `add-matcher` - `add-path` So filtering away the lines containing those keywords, from the `act` output, worked for me: ` act [event name to run] [flags] | grep -v "remove-matcher\|add-matcher\|add-path"`
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#379
No description provided.