-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cache-dependency-path with npm to a subfolder does not work #624
Comments
Hello @kentlarsson, thanks for you input. We start to investigate the issue. |
Thank you! Let me know if I can help out with any information. (I looked for some kind of verbose/debug flag for the action but didn't find one.) |
Hello @kentlarsson, i tried to reproduce the problem but the following pipeline works as expected This the build run the npm files are cached And here the cache it used Can you please double check you have package-lock.json commited in or fork the branch i created i try to reproduce the problem with it? |
Hey! Thanks for investigating! Yes it's committed, it's quite essential for us (but I know you have to ask of course). I'll try to fork that repo and see if I can reproduce the issue. It might take a week though, but I'll do it and get back to you in this thread. Thanks again! |
Hello @kentlarsson. Do you have any updates ? |
Sorry, I've had too much to do. But I just learned about ACTIONS_RUNNER_DEBUG which I guess you used? So I'll try to add that tomorrow to our repo and see what it says. If I just fork your repo I guess we'd only make sure that the files are where they should. And since the ascii tree I had in my debug report was from the tree command I'd assume so (and package-lock we use all the time). I'll probably get more useful info the above way. Or did you have other reasons for suggesting a fork than to make sure |
Hello @kentlarsson, to investigate and solve the problem we need to reproduce it. Currently i am not able to get the actual error despite i reproduced the repo according the description. Can you please try to replace
with
or
as a quick fix that may help? |
Hey! Thanks for your attention! I'm sorry I answer a bit later then I say, it's been a very busy period at work. But I'll do my best to give the best info I can asap though. :-) I tried both
And
But I got the same result. I also enabled I'll try the fork now so that I've tried everything suggest. Will be back with those results. |
Also to quadruple check paths:
|
I forked your repo now! At first I just forked main, it was my first fork plus I am a bit sloppy. Anyway, I copy pasted over your workflow file with npm and I could reproduce the error.
I ran the CI action four times, from oldest to newest:
Maybe the container is somehow different from what you expect? Thanks again for helping me out! |
Hey @kentlarsson I believe that I am having kind of the same issue in this pipeline, this is my config file. Maybe I am missing something, but please let me know if you spot anything relevant |
@edimossilva Seems likely, you also use a subfolder. We'll see if we can give @dsame the info he needs to know what's going on and hopefully fix it. :-) I guess if you follow this thread we'll see it together. |
@kentlarsson i see you workflow points out to I checked all 3 failed builds and the all have the same issue with |
@edimossilva I gusee this should be |
@kentlarsson @edimossilva i am going to close this issue because of not activity for more than a week, but please feel free to reopen it or create new one in case if the issue exists. |
just to mention, I also had this issue a few hours ago, and the reason was that I had deleted |
I would like to add a comment. I was facing this isse earlier today, and after digging for three hours, a teammate noticed that we missed the |
That solved it for me! |
Hi everyone, I have a similar issue with the same error as @kentlarsson. I believe my issues is due to the fact that each component in my root directory has its own package.lock buried two levels below the root working directory.
|
In my case, someone previously added the file name to the Maybe this helps some more folks troubleshoot if google leads them here. |
It seems only |
Description:
cache-dependency-path
to a subfolder results inError: Some specified paths were not resolved, unable to cache dependencies.
Action version:
actions/setup-node@v3
Platform:
Runner type:
Tools version:
The node 16.x version with corresponding npm version you get in Github.
node-version: 16
check-latest: true
Repro steps:
Repo structure:
Relevant workflow part:
But for cache-dependency-path I've also tried these strings:
And they all fail:
Expected behavior:
Caching to work even though the package lock file is in a subfolder called functions.
Actual behavior:
See repro steps above.
The text was updated successfully, but these errors were encountered: