Skip to content

Fix: exception when external link exists under windows and runfiles enabled #161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 27, 2024

Conversation

nosamad
Copy link
Contributor

@nosamad nosamad commented Jan 24, 2024

I have observed an exception when using compile commands under windows with runfiles enabled.
The error is, that a windows path object has no method removeprefix.

Steps to reproduce:

  • Enable Windows Developer mode and runfiles

Options in .bazelrc

build --enable_runfiles
startup --windows_enable_symlinks

@cpsauer
Copy link
Contributor

cpsauer commented Jan 27, 2024

🤦🏻 This is my bug flipping things over to pathlib. Thanks so much for noticing and taking the time to fix.

Made a small tweak to compact things, since current_dest is already a pathlib.Path, and am merging. Please lmk if you have any further problems or if I've messed something up.

Thanks again for leaving things better than you found them :)

Happy coding!
Chris

@cpsauer cpsauer merged commit 09fee2f into hedronvision:main Jan 27, 2024
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.

2 participants