Skip to content

Add configurable skip patterns for cargo build script execroot symlinking#7

Open
walter-zeromatter wants to merge 3 commits intohermeticbuild:mainfrom
walter-zeromatter:pr/cargo-symlink-skip
Open

Add configurable skip patterns for cargo build script execroot symlinking#7
walter-zeromatter wants to merge 3 commits intohermeticbuild:mainfrom
walter-zeromatter:pr/cargo-symlink-skip

Conversation

@walter-zeromatter
Copy link

@walter-zeromatter walter-zeromatter commented Mar 20, 2026

Summary

  • New symlink_exec_root_skip_patterns setting for controlling which execroot entries are skipped during CARGO_MANIFEST_DIR symlinking
  • Defaults skip worker temp dirs and VCS directories
  • Windows symlink handling improvements: correct file/directory/junction handling, tolerate missing runfile entries, downgrade removal failures to warnings

…king

Adds symlink_exec_root_skip_patterns setting to cargo/settings, allowing
users to control which execroot entries are skipped during CARGO_MANIFEST_DIR
symlinking. Defaults skip worker temp dirs and VCS directories.

Also improves Windows symlink handling:
- Correctly handle file symlinks, directory symlinks, and junctions
- Tolerate missing runfile entries
- Downgrade symlink removal failures to warnings on Windows
…king

Adds symlink_exec_root_skip_patterns setting to cargo/settings, allowing
users to control which execroot entries are skipped during CARGO_MANIFEST_DIR
symlinking. Defaults skip worker temp dirs and VCS directories.

Also improves Windows symlink handling:
- Correctly handle file symlinks, directory symlinks, and junctions
- Tolerate missing runfile entries
- Downgrade symlink removal failures to warnings on Windows
@walter-zeromatter walter-zeromatter marked this pull request as ready for review March 21, 2026 00:38
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.

1 participant