4
10
Fork
You've already forked setup-zig
2

Caching build.zig.zon dependencies? #64

Open
opened 2025年12月12日 16:06:50 +01:00 by Anton-4 · 4 comments

Hi,
We at roc-lang are satisfied users of the setup-zig github action :)
We also regularly hit this issue: https://github.com/ziglang/zig/issues/17472
So we were wondering if dependencies defined in build.zig.zon could be cached as well?
This would be a nice workaround, should be faster, and also avoid unnecessary requests.

Let me know what you think!

Hi, We at roc-lang are satisfied users of the setup-zig github action :) We also regularly hit this issue: https://github.com/ziglang/zig/issues/17472 So we were wondering if dependencies defined in build.zig.zon could be cached as well? This would be a nice workaround, should be faster, and also avoid unnecessary requests. Let me know what you think!
Contributor
Copy link

I would think it already should? setup-zig points the global and local cache directories to .zig-cache in the workspace directory, and that's the directory that gets cached - at least if you don't set use-cache: false.

I would think it already should? setup-zig points the global and local cache directories to `.zig-cache` in the workspace directory, and that's the directory that gets cached - at least if you don't set `use-cache: false`.
Author
Copy link

Oh interesting, we are using use-cache: true and we still hit the issue. I can investigate this more some time and report back.

Oh interesting, we are using `use-cache: true` and we still hit the issue. I can investigate this more some time and report back.
Contributor
Copy link

Did you have a chance to investigate this in the meantime?

Did you have a chance to investigate this in the meantime?
Author
Copy link

No, not yet, it may be a while before I get to it.

No, not yet, it may be a while before I get to it.
Sign in to join this conversation.
No Branch/Tag specified
main
v2.2.0
v2
v2.1.0
v2.0.5
v2.0.4
v2.0.3
v2.0.2
v2.0.1
v2.0.0
v1
v1.2.2
v1.2.1
v1.2.0
v1.1.1
v1.1.0
v1.0.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mlugg/setup-zig#64
Reference in a new issue
mlugg/setup-zig
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?