[PR #2126] fix: preserve cache dir on cleanup #10205

Closed
opened 2026-02-16 18:14:49 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/2126

State: closed
Merged: Yes


The cache directory should be preserved to avoid potential permission issues per xdg spec1 :

If the destination directory exists already the permissions should not be changed.

Usecase: on my system (NixOS with impermanence) the root fs is mounted with noexec, and specific directories have the exec flag set as needed.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2126 **State:** closed **Merged:** Yes --- The cache directory should be preserved to avoid potential permission issues per xdg spec[^1]: > If the destination directory exists already the permissions should not be changed. Usecase: on my system (NixOS with impermanence) the root fs is mounted with `noexec`, and specific directories have the exec flag set [as needed](https://github.com/meatcar/dots/blob/f57263f969edbd6378a838fc0ae06de1c09eb4e6/modules/impermanence/meatcar.nix#L38). [^1]: https://specifications.freedesktop.org/basedir-spec/latest
yindo added the pull-request label 2026-02-16 18:14:49 -05:00
yindo closed this issue 2026-02-16 18:14:49 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10205