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

MacOS default cache dir: /tmp -> /var/tmp #163

Merged
merged 2 commits into from
Feb 14, 2024
Merged

Conversation

motiejus
Copy link
Collaborator

MacOS has a cronjob that deletes files older than 3 days from /tmp. That's not good for zig cache: ziglang/zig#18763

Switch to /var/tmp, which does not seem to be randomly wiped at runtime.

This breaking change means the next hermetic_cc_toolchain will be v3.0.0.

MacOS has a cronjob that deletes files older than 3 days from /tmp.
That's not good for zig cache: ziglang/zig#18763

Switch to /var/tmp, which does not seem to be randomly wiped at runtime.

This breaking change means the next hermetic_cc_toolchain will be
v3.0.0.
@motiejus motiejus requested a review from jvolkman February 14, 2024 20:33
@motiejus
Copy link
Collaborator Author

Eh Linux:

error: unable to create compilation: ReadOnlyFileSystem

@motiejus
Copy link
Collaborator Author

We will have:

  • Windows: C:\Temp\hermetic_cc_toolchain
  • Linux: /tmp/zig-cache
  • MacOS: /var/tmp/zig-cache

But that will come tomorrow.

@motiejus motiejus changed the title default cache dir: /tmp -> /var/tmp MacOS default cache dir: /tmp -> /var/tmp Feb 14, 2024
@motiejus motiejus merged commit c836a66 into uber:main Feb 14, 2024
8 checks passed
@motiejus motiejus deleted the var-tmp branch February 14, 2024 21:31
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.

2 participants