-
Notifications
You must be signed in to change notification settings - Fork 4
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
retry cache install #17
base: v2
Are you sure you want to change the base?
Conversation
Uhm, as far as I know, the jobs run concurrently on GitHub runners when you don't explicity use needs. Could that be the problem? I'm trying it out now on my fork |
Nope. That's not it. I'm gonna give up on this one. I would start by doing some |
Of course! I'm st***d... I forgot to checkout before... BTW does your action only cache the buildInput of the given nix_file? |
Haha, oh so I did go in the right direction even though my job in de fork failed.
I'm not sure what you mean. Maybe the code of the action can answer your question. It basically moves the stuff over from the Nix store. |
I mean, which parts of the store does it cache? Why is a |
d1c9c87
to
b359658
Compare
|
It caches everything which is in the store after nix-env is done on running
default.nix.
…On Fri, 12 Mar 2021 at 00:05, Cyril Cohen ***@***.***> wrote:
I'm not sure what you mean. Maybe the code of the action can answer your
question. It basically moves the stuff over from the Nix store.
I mean, which parts of the store does it cache? Why is a default.nix even
required?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE6DZMWBJKS3VZUBQBOLDBTTDFED5ANCNFSM4ZBAMGTQ>
.
|
OK, thanks for the clarification. In theory, do you foresee any problem in modifying your action so that we do not have to provide a nix file, then letting the user do everything they want and in the end of the user action, caching everything (exactly as cachix does but with a local cache instead)? |
I think that that will be difficult, because I'm basically wrapping around the procedures occurring in the GitHub Actions step. This is caused by the limited GitHub Actions capabilities at the time that I was writing the package. You're free to open a PR. Basically, the problem was that you can set GitHub to upload the cache at the end of the last step (like the normal GitHub cache Action). However, the Nix store sets all kinds of restrictive permissions on the files causing the caching step to fail. This is why I made the wrapper, so that I can run |
No description provided.