You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: use cache-directories instead of workspaces for absolute target-dir
rust-cache's `workspaces` input uses `path.join(root, target)` which
on Windows concatenates the workspace root with an absolute path on a
different drive, producing invalid paths like `D:\a\repo\E:\target`.
Instead of passing target-dir via workspaces:
- Set `cache-targets: false` when target-dir is set (no ./target exists)
- Set `cache-directories` to the target dir (adds paths directly without path.join)
- Revert to upstream Swatinem/rust-cache (no fork needed)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
feat: add `target-dir` input for custom cargo target directory (#39)
Adds support for redirecting compilation artifacts to a custom directory
(e.g., a Dev Drive on Windows) by setting `CARGO_TARGET_DIR` and
configuring rust-cache's `workspaces` accordingly to avoid cache misses.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>