-
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
use cache without package-lock #782
Comments
Hello, @merlinpaypal ! Thank you for creating this issue, we will investigate it and see what can be done :) |
Hello again, @merlinpaypal ! I'm just letting you know about a feature that could possibly be what you might be looking for. Namely, our action has an input called |
Hi @dusan-trickovic , thanks for letting me know about that. I did try pointing it at
|
Hello again @merlinpaypal ! I just wanted to point out a few things regarding your issue:
That's all from our side for now. You could try adding Thank you for your time and cooperation :) |
I added the install step (I think I pointed to the wrong workflow before), but now it fails by not finding |
Hello again @merlinpaypal ! I have consulted with my team and we decided that we will, unfortunately, have to close this issue, as it doesn't seem like anything can be done from our end. Our action is built with a However, your runs seem to suggest that the dependencies you installed (mainly Although this issue isn't on our side, I suggest enabling logging for your action runs if you can. This can help you catch some issues, if any, with the dependency installation process on the runner. You could also ensure that all the dependencies are configured properly and that the code runs as expected by starting the project locally and seeing if you detect something in the local logs, as this can likely help you resolve an issue before it even reaches the runner. Whichever the case may be, this doesn't seem to be related to our Action in particular. For that reason, this issue will be closed, but please don't hesitate to reach out again if you're facing any other issues while using our Actions. Thank you so much for your patience and contribution :) |
I've enabled debug logging (both I have set up 2 runs, one with Node 14, which passes. And one with Node 16, which fails, but I see no obvious errors or problems.
So I think there's some kind of bad interaction between github actions and node 16, so I think this issue should stay open. |
Hello @merlinpaypal. I think it is not the issue from the action side because the action works as expected Nodejs can be called without any issue. Could you please disable the cache for Nodejs 14 because I think that some dependencies can be loaded from the cache ? |
As it turns out, there is an issue with the upgrade from npm 6 to npm 8, which makes the preinstall script run after installing, which is why our runs were failing. Our preinstall command removes node_modules to ensure a clean install, which isn't needed in a CI environment. Thanks for bearing with me on this. |
As mentioned in this comment, https://github.com/orgs/community/discussions/58213#discussioncomment-11461861 I was able to point the workflow to my |
Description:
Use cache without package-lock file
Justification:
We don’t want a package lock because we want our CI to run with the latest dependencies. Our repo is a library that gets packaged into an SDK. So if the SDK team updates a dependency we use, then that causes messaging to break.
If we used a package-lock, these issues wouldn't be discovered until late in the release or post-release process
Are you willing to submit a PR?
Possibly, depending on the difficulty and if I get pointed in the right direction. But I'm new to building actions and I know caching/setting up node is not an easy process.
The text was updated successfully, but these errors were encountered: