-
Notifications
You must be signed in to change notification settings - Fork 7
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
[BUG] Restoring cache appears to be missing files (e.g. libgcc_s.so.1) #44
Comments
@obreitwi, please verify that files are missing due to the
Files may be missing due to building an incorrect list of paths to exclude. cache-nix-action/src/utils/action.ts Lines 83 to 99 in 8351fb9
I'd be really nice if you provide a way to reproduce the problem, e.g., with a |
Here's a failed run with debug logging https://github.com/morguldir/conduwuit/actions/runs/9771677418/job/26975127257 Also changing to v5.1.0 like @Munksgaard did fixed it, even when the cache was made with v5.2.1: https://github.com/morguldir/conduwuit/actions/runs/9771781896/job/26975369404 |
@obreitwi, @morguldir, @girlbossceo, @Munksgaard please provide a minimal reproducible example, so that I can debug properly. |
There may be a problem in the SQL script due to hash collisions, but hash collisions are highly unlikely for SHA256. cache-nix-action/src/templates/merge.sql Lines 104 to 114 in 4ccebba
|
Really appreciate you looking into it… 👍 |
@obreitwi, thanks for reducing problem space!
I created
Looking forward to receiving an example! Currently, I'll try to use the @morguldir and @Munksgaard examples (@morguldir, @Munksgaard, thanks for providing them!), though they're:
|
@obreitwi, @morguldir, @girlbossceo, @Munksgaard I was advised to add https://github.com/deemp/citest/blob/d77ac10524f4ebb48392b7917e35f4bf98b4cacb/flake.nix#L41 https://github.com/deemp/citest/actions/runs/10620205547/job/29439655553#step:9:1 |
I still have questions:
|
Thank you for your work on this @deemp. I'm currently swamped with other work, but I'll try to re-engage with this issue sometime next week. |
Describe the bug
When building in a restored cache, the builder is unable to find
libgcc_s.so.1
.This leads to various errors, such as:
when building a go service via gomod2nix or
when building a docker image via
dockerTools.buildLayeredImage
.To Reproduce
(Currently the error occurs in a private repo. I plan on re-creating it in a public repo for easier reproduction, but I wanted to report the issue first nonetheless)
Steps to reproduce would include:
auto-optimize-store = false
,sandbox = true
), observe that all build targets get built successfully.Expected behavior
Restoring the cache should restore all files; to nix, it should not make a difference.
Additional context
A workaround is simply disabling the cache for now, but I want to understand what is going on… 😉
The text was updated successfully, but these errors were encountered: