mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #311] Unable to resolve v1: reference not found #217
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#217
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 @MartinGonzalez on GitHub (Jul 20, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/311
Hi!
It's the first time I'm working with github actions and I saw this to test them locally.
I have this workflow
But I'm having this error when running act
If I run
git clone 'https://github.com/ruby/setup-ruby' # ref=v1it succeed. Should I configure something? A github token to an Env variable or something?@jean-francois-labbe commented on GitHub (Jul 23, 2020):
I have the same issue
@thelfensdrfer commented on GitHub (Jul 27, 2020):
This usually means that the version, in your case
v1, does not exist. You can try e.g.uses: ruby/setup-ruby@v1.40.0.@PsypherPunk commented on GitHub (Jul 30, 2020):
I'm seeing something similar using
actions-rs/toolchain@v1. If pushed to Github, the Action works as intended; runningactlocally, I seeUnable to resolve v1: reference not found.If I change this to
actions-rs/toolchain@v1.0.6thenactworks as expected.As far as I can see, both
v1.0.6andv1are valid references: https://github.com/actions-rs/toolchain/tags@plauche commented on GitHub (Jul 30, 2020):
I'm seeing a similar issue but when using
@HEADas the ref which should generally be valid in a git repo. Works fine when deployed to GH actions.@drewcoo commented on GitHub (Jul 31, 2020):
I'm seeing this failure in Act but not on GitHub, too.
I'm using cypress-io/github-action.
Using @v2 works on GitHub.
The repo does not have a v2 tag, so that fails with reference not found.
It had a v2.2.2 tag, which Act can find, but then it fails with this:
[web redesign functional test/tryit-2] Exec command '[node \actions\cypress-io-github-action@v2.2.2\dist\index.js]'
| internal/modules/cjs/loader.js:628
| throw err;
| ^
|
| Error: Cannot find module '/github/workspace/\actions\cypress-io-github-action@v2.2.2\dist\index.js'
| at Function.Module._resolveFilename (internal/modules/cjs/loader.js:625:15)
| at Function.Module._load (internal/modules/cjs/loader.js:527:27)
| at Function.Module.runMain (internal/modules/cjs/loader.js:839:10)
| at internal/main/run_main_module.js:17:11 {
| code: 'MODULE_NOT_FOUND',
| requireStack: []
| }
(marking the output above as code mangled it badly, so I bolded instead)
@joerodrig commented on GitHub (Jul 31, 2020):
I was having this issue as well on Act. I got around it by forking the repo and creating a new tag off of the head of the latest release(v1.40.0) and creating a new tag that was just
v1, which was recognized. See this release tag. My guess is that this parser code is looking for a base version tag(ie. v1), which it's not finding because the base v1 tag here isv1.0.0I'm not 100% sure if this worked as a full workaround though, because I'm getting a new issue when attempting to install my specified ruby version now:
@mossad-zika commented on GitHub (Aug 20, 2020):
cmon, fix it please
@pezholio commented on GitHub (Sep 10, 2020):
@joerodrig Yep, I'm having exactly the same problem. It worked the first couple of times specifying the full tag, but now I'm getting that same error
@marartner commented on GitHub (Sep 15, 2020):
same issue with
symfonycorp/security-checker-action@v2- working fine on github itself, definitely exists. but locally:doing
symfonycorp/security-checker-action@038cecb1ee1bf871d1ef43e873f813d900a1125c(038... being the exact commit that tag is on) works. but that ofc shouldn't be a long term solution...@askoriy commented on GitHub (Oct 5, 2020):
The issue occurs if v1, v2 refs are branches, not tags. But yes, it's very annoying and needs to be fixed.
The same is https://github.com/nektos/act/issues/234
@cplee could you look into? Thanks so much
@bndynet commented on GitHub (Nov 11, 2020):
I used the exact version and resolved.
@akoshulian-exos commented on GitHub (Nov 12, 2020):
It works the first time after changing to the full version. On the second time, I get the same error.
@rna commented on GitHub (Jan 3, 2021):
Is anyone found a fix for ruby setup:
Error: reference not found@tonyaajjackson commented on GitHub (Jan 3, 2021):
Seeing the same issue with the
setup-pythonaction:Running
git clone 'https://github.com/actions/setup-python' # ref=v1locally is successful.Github actions yaml file can be found here:
https://github.com/plamere/spotipy/blob/master/.github/workflows/pythonapp.yml
@ps-brandmonitor commented on GitHub (Jan 12, 2021):
I did:
uses: ruby/setup-ruby@v1.62.0
That seemed to do the trick!
@rna commented on GitHub (Jan 13, 2021):
Now, I'm getting this new error after changing as per your suggestion. @ps-rruiz
@catthehacker commented on GitHub (Jan 13, 2021):
@rna specify OS version in
envfile e.g.:ImageOS=ubuntu18and use it via--env-fileflag@lufia commented on GitHub (Jan 15, 2021):
I added commits on #471 and #433 and they were merged (but they aren't released yet), so I'm expecting this issue will be fixed.
@theowenyoung commented on GitHub (Jan 23, 2021):
@cplee may I know when to release next version? This fix really helps.
@cplee commented on GitHub (Jan 23, 2021):
@theowenyoung - just released
v0.2.19@yuuuxt commented on GitHub (Jan 23, 2021):
It's working in Windows 10 using
cmdandpowershell, but not working withcmder. using the just released version 0.2.19.@lufia commented on GitHub (Jan 23, 2021):
What
cmderis? Could I get the workflow file to reproduce the error?@catthehacker commented on GitHub (Jan 23, 2021):
https://cmder.net/
@yuuuxt commented on GitHub (Jan 24, 2021):
Hi @lufia ,
First of all thanks for your work! You can reproduce with the following steps:
cmder(link), put it somewhere and open it;act.I just tried and reproduced.
@catthehacker commented on GitHub (Jan 24, 2021):
Works fine for me

@yuuuxt commented on GitHub (Jan 24, 2021):
Then I have no idea what went wrong..
Anyway I can use
actwith something other thancmder:)@mjuarez commented on GitHub (Jan 27, 2021):
I came across this issue after having act interrupted mid-way through a job and leaving the act's cache in a bad state. I ran
rm -rf ~/.cache/actand was able to continue working@github-actions[bot] commented on GitHub (Feb 27, 2021):
Issue is stale and will be closed in 14 days unless there is new activity