Skip to content

Don't perform an existence check in get_target#36

Merged
tesuji merged 2 commits into
tesuji:mainfrom
woodruffw-forks:ww/rm-exists-check
Apr 26, 2026
Merged

Don't perform an existence check in get_target#36
tesuji merged 2 commits into
tesuji:mainfrom
woodruffw-forks:ww/rm-exists-check

Conversation

@woodruffw
Copy link
Copy Markdown
Contributor

@woodruffw woodruffw commented Apr 26, 2026

WIP, leaving in draft until I confirm the CI passes 🙂

This removes the destination existence check from get_target. In other words, get_target still validates that the junction itself exists, but not that the junction's destination directory exists. This is consistent with what other languages' junction APIs do, per discussion in #34. It is however a breaking change, so a major version is in order.

Closes #34.

@woodruffw woodruffw marked this pull request as ready for review April 26, 2026 18:06
Signed-off-by: William Woodruff <william@yossarian.net>
@woodruffw woodruffw force-pushed the ww/rm-exists-check branch from 131681e to 92c7864 Compare April 26, 2026 18:06
Signed-off-by: William Woodruff <william@yossarian.net>
Copy link
Copy Markdown
Owner

@tesuji tesuji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you.

@tesuji tesuji merged commit e3d2a22 into tesuji:main Apr 26, 2026
11 checks passed
@woodruffw woodruffw deleted the ww/rm-exists-check branch May 11, 2026 13:30
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.

Surprising behavior with junction::get_target

2 participants