mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #2390] The --local-repository-argument does not work for reusable workflows #1096
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#1096
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 @weyert on GitHub (Jul 9, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2390
Bug report info
Command used with act
Describe issue
The problem I am having that when I pass the
--local-repositoryit is not using the local copy of the repository but instead its using the remote repository instead. Making it difficult to develop and/or debug workflows.Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
Masked some project specific details
@ChristopherHX commented on GitHub (Jul 9, 2024):
I assume your problem here is the missing tagname before the =
Maybe try
Supporting this without tag name e.g. any ref might be a useful addition tbd.
Didn't test it again, I'm busy with other tasks
@weyert commented on GitHub (Jul 11, 2024):
have tried your suggestion but it is not working. Do you know where in the code this parameter is used? I don't see any (verbose) logs about it copying or mapping this repository somehow.
I do wonder if the problem is that I try to reference a particular workflow, e.g.
company-dev/devops-github-workflows.github/workflows/validate.yml@maininstead ofcompany-dev/devops-github-workflows@main@ChristopherHX commented on GitHub (Jul 11, 2024):
I don't have enough information to locate a problem in the code, maybe I need to check macOS (using ubuntu 24.04) or you have typos
The following error is expected if you run
act -W w.ymlin foldermainhere a zip (act-use-workflow.zip)Empty workflow file
If it is valid it continues for me......
Maybe I was very sparing when logging, here this code matches
github.com/nektos/act@3c7eda7f3e/pkg/runner/local_repository_cache.go (L24-L91)@<version>will never match anythingI suggest making a breakpoint in the fetch method and look why it skipped
@weyert commented on GitHub (Jul 22, 2024):
Thank you! I am having a look.
Struggling a bit to get the code compiled while also having
actinstalled via Homebrew. Once I cracked that problem I will get some breakpoints going.@weyert commented on GitHub (Jul 23, 2024):
Looks like your suggestion works @ChristopherHX . The only time it appears to go wrong when you try to use it together with a matrix strategy then a concurrent write error occurs. Don’t think that’s a big problem, though
@ChristopherHX commented on GitHub (Aug 11, 2024):
@weyert
Are you able to provide an minimal reproducible repo with
Error: EOFI tried
Doesn't seem your problem description let me debug the problem in your original post.
@weyert commented on GitHub (Aug 11, 2024):
@ChristopherHX Yeah, I will take some time this week to try to make a reproducible case.
@github-actions[bot] commented on GitHub (Feb 8, 2025):
Issue is stale and will be closed in 14 days unless there is new activity