mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #707] Issue: private action using local machine path and not docker container path #445
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#445
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @TonyRouse on GitHub (May 26, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/707
Act version
Expected behaviour
I checkout the actions repo of my organization and try to call an action in it.
pathis the same name as the repo because of the known issue withMODULE_NOT_FOUNDin the README.Actual behaviour
The error is looking for the right file, that IS on the docker container, but the path is it calling
/Volumes/Code/..is on my local machine, not the docker container.Workflow and/or repository
workflow
Steps to reproduce
actionsrepo withgradle-build/action.yamlfileactoutputLog
@ekallevig commented on GitHub (May 28, 2021):
I ran into the same issue. However, I tried to test the theory that it's looking for the files on the local machine (and not the docker container) by putting the same files on my local machine and it still gave the same "not found" error. Which then made me wonder if perhaps it's permissions issue?
@TonyRouse commented on GitHub (May 28, 2021):
I assumed this because the
/Volumns/Code/.../..file path is from my local system. I would wonder if your test didn't work because it is running in the container that doesn't have access to your local files. The "path to code" is from the directory structure one the local machine, the command is executed in the contain, which the file doesn't exist on.@ChristopherHX commented on GitHub (May 29, 2021):
My thoughts about this issue, after looking at the sources.
A recent change to act, use the exact same path of your host workdir inside the container (except on windows).
I think the problem is, act uses docker cp for local actions, from the host to the container. This leads missing files, at the action destination, which isn't your working dir.
Possible workaround, until fixed:
Clone
[organization]/actionsmanually into your working dir, before running act (a.gitignorefile excluding the action may break the workaround)Disable the remote checkout step, to avoid overriding files.
I haven't tried it yet, but act has a lot of (reported and not reported) bug's in this area
@github-actions[bot] commented on GitHub (Jun 29, 2021):
Issue is stale and will be closed in 14 days unless there is new activity