-
Notifications
You must be signed in to change notification settings - Fork 503
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, we used `fs::canonicalize` to ensure paths used in search were absolute. This lead to bad behavior when the justfile was symbolic link to a file in another directory. Additionally, on Windows, this produced paths in extended length syntax, which, I believe, has compatibility issues. This diff replaces uses of `fs::canonicalize` with a simpler algorithm that roots path in the invocation directory (which will be a no-op if said path is already absolute), uses `Path::components` to remove extra `/` and `.`, and resolves instances of `..` without following symlinks, by removing the `..` and the component that proceeds it.
- Loading branch information
Showing
4 changed files
with
78 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters