Open weyert opened 1 month ago
I assume your problem here is the missing tagname before the =
Maybe try
--local-repository company-dev/devops-github-workflows@main=/Users/developer/Development/Projects/Company/devops-github-workflows
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
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@main
instead of company-dev/devops-github-workflows@main
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.yml
in folder main
here a zip (act-use-workflow.zip)
INFO[0000] Using docker host 'unix:///var/run/docker.sock', and daemon socket 'unix:///var/run/docker.sock'
WARN[0000] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/user/act-use-workflow/main): repository does not exist
ERRO[0000] path/home/user/act-use-workflow/mainnot located inside a git repository error="repository does not exist"
WARN[0000] unable to get git ref: repository does not exist
ERRO[0000] path/home/user/act-use-workflow/mainnot located inside a git repository error="repository does not exist"
WARN[0000] unable to get git revision: repository does not exist
[w.yml/reusable] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/user/act-use-workflow/main): repository does not exist
[w.yml/reusable] path/home/user/act-use-workflow/mainnot located inside a git repository
[w.yml/reusable] unable to get git ref: repository does not exist
[w.yml/reusable] path/home/user/act-use-workflow/mainnot located inside a git repository
[w.yml/reusable] unable to get git revision: repository does not exist
Error: lstat /home/user/act-use-workflow/re/.github/workflows/test.yml: no such file or directory
Empty workflow file
Error: unable to read workflow 'test.yml': file is empty: EOF
If it is valid it continues for me......
Do you know where in the code this parameter is used?
Maybe I was very sparing when logging, here this code matches
@<version>
will never match anythingI suggest making a breakpoint in the fetch method and look why it skipped
Thank you! I am having a look.
Struggling a bit to get the code compiled while also having act
installed via Homebrew. Once I cracked that problem I will get some breakpoints going.
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
@weyert
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
Are you able to provide an minimal reproducible repo with Error: EOF
I tried
Doesn't seem your problem description let me debug the problem in your original post.
@ChristopherHX Yeah, I will take some time this week to try to make a reproducible case.
Bug report info
Command used with act
Describe issue
The problem I am having that when I pass the
--local-repository
it 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