just_executable() and other functions return the native path, not the cygpath, when in Windows
- Dominant language
- Rust
- Stars
- 35.8k
- Forks
- 846
- Avg merge
- 27m
- Merged PRs (30d)
- 3
Description
1) I am confused by the following sentence in the just doc:
On Windows, invocation_directory() uses cygpath to convert the invocation directory to a Cygwin-compatible /-separated path. Use invocation_directory_native() to return the verbatim invocation directory on all platforms.
Running the following on Windows, I still get Windows-native paths e.g. D:\some\thing\
@test:
echo '{{just_executable()}}'
echo '{{justfile()}}'
echo '{{justfile_directory()}}'
echo '{{source_directory()}}'
echo '{{invocation_directory()}}'
2) Not clear: does `just` require `cygpath.exe` in the system $PATH while on Windows? does it fail if it does not find it?
3) The sentence above also conflicts with https://just.systems/man/en/paths-on-windows.html
4) There should be a function to normalize Windows path to Unix / POSIX paths and vice-versa.
Contributor guide
Assessment
This issue has not been assessed yet.