Skip to content
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

Improve Zig cache handling #254

Open
aherrmann opened this issue Apr 7, 2024 · 0 comments
Open

Improve Zig cache handling #254

aherrmann opened this issue Apr 7, 2024 · 0 comments

Comments

@aherrmann
Copy link
Owner

As of #253 the Zig cache is stored in an absolute path that is not managed by Bazel and is persisted between build actions and Bazel builds. This requires dedicated Bazel configuration (--sandbox_add_mount_pair) to pass the path through the sandbox. This is not strictly hermetic as the previous state of the cache can impact a following build, and as the cache may be persisted across Zig SDK updates or other actions that may trigger build failures due to incompatible changes in the cache treatment.

Consider alternative options to manage the Zig cache, e.g. uber/hermetic_cc_toolchain#83, or a persistent worker as described in #87. Take local builds, CI builds, and remote execution builds, as well as Zig SDK, Bazel, and rule set version updates into account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant