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

Revamp zig build caching #1881

Merged
merged 1 commit into from
Aug 28, 2024
Merged

Revamp zig build caching #1881

merged 1 commit into from
Aug 28, 2024

Conversation

plajjan
Copy link
Contributor

@plajjan plajjan commented Aug 28, 2024

Now split the cache into the zig global cache and the zig local cache. Zig had these separate from the beginning but as Zig didn't differentiate between them earlier, before the package manager, I didn't know what they were good for and so we ended up just using a single directory. Now that there is a package manager, we separate the global cache, which is used for downloaded packages, and the local cache which is used for built stuff.

The automatic clearing of the cache is kept but only applies for the local cache. The global cache is never automatically cleared, instead a warning is emitted once it crosses 10GB in size and for every additional 1GB in growth.

Fixes #1858

Now split the cache into the zig global cache and the zig local cache.
Zig had these separate from the beginning but as Zig didn't
differentiate between them earlier, before the package manager, I didn't
know what they were good for and so we ended up just using a single
directory. Now that there is a package manager, we separate the global
cache, which is used for downloaded packages, and the local cache which
is used for built stuff.

The automatic clearing of the cache is kept but only applies for the
local cache. The global cache is never automatically cleared, instead a
warning is emitted once it crosses 10GB in size and for every additional
1GB in growth.
@plajjan plajjan merged commit c1aceec into main Aug 28, 2024
23 checks passed
@plajjan plajjan deleted the zig-cache-revamp branch August 28, 2024 09:41
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

Successfully merging this pull request may close these issues.

Rework zig cache - do not empty automatically
1 participant