Open obreitwi opened 2 weeks ago
@obreitwi, please verify that files are missing due to the cache-nix-action
. There are two ways:
Files may be missing due to building an incorrect list of paths to exclude.
I'd be really nice if you provide a way to reproduce the problem, e.g., with a nixpkgs
package.
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… :wink: