Closed mrcnski closed 2 years ago
That's probably because you're executing act in a folder that doesn't contain a .git
folder: https://github.com/nektos/act/blob/master/pkg/common/git/git.go#L226-L249
Also, these messages are warnings, not errors.
There is a .git
file (not folder), my repo happens to be a worktree. That seems to be what's causing it, based on the linked code.
This might be easily fixed if you use the gitdir
specified in the worktree file, though you'd have to test it. I can even give it a shot if you reopen the issue.
There was an attempt a few months ago to implement worktree support in act: https://github.com/nektos/act/pull/829 but unfortunately it was abandoned.
If you want to try to implement it, please go ahead :)
There was an attempt a few months ago to implement worktree support in act: #829 but unfortunately it was abandoned.
If you want to try to implement it, please go ahead :)
I guess it's not as simple as just changing that one function:
But it will still not work with the current implementation, as act is working on the root working copy. That need to be changed in this PR.
I don't have the inclination to dive into act
internals; I barely use it, I just wanted to report a single issue.
It would be nice if at least the git
error only displayed once instead of 1000s of times, but I likewise don't care to learn how act
implements its error handling in order to fix that.
but I likewise don't care to learn how act implements its error handling in order to fix that
If you don't care, you don't deserve the fix :wink: Just joking.
but I likewise don't care to learn how act implements its error handling in order to fix that
If you don't care, you don't deserve the fix 😉 Just joking.
The maintainers could fix this really quickly as they already are familiar with the codebase.
Bug report info
Command used with act
Describe issue
Tons and tons of error message spam in the output.
Link to GitHub repository
https://github.com/SkynetLabs/skynet-js
Workflow content
Relevant log output
etc.