Gate set_executable_permissions call with #[cfg(unix)]
All checks were successful
Release / Bump version and tag (push) Successful in 3s
Release / Build App (macOS) (push) Successful in 1m18s
Release / Build App (Windows) (push) Successful in 3m11s
Release / Build App (Linux) (push) Successful in 3m31s

The method is cfg(unix) but the call site wasn't gated, causing a
compile error on Windows.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-03-23 19:04:16 -07:00
parent e0e1638327
commit a3a45cb308

View File

@@ -339,6 +339,7 @@ impl SidecarManager {
Err(e) if e.raw_os_error() == Some(13) => {
// Permission denied — fix permissions and retry once
eprintln!("[sidecar-rs] Permission denied, fixing permissions and retrying...");
#[cfg(unix)]
if let Some(dir) = path.parent() {
Self::set_executable_permissions(dir);
}