Casey Rodarmor c4e9857ebd
Avoid fs::canonicalize (#539)
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.
2019-11-19 03:51:44 -08:00
..
2019-11-07 10:55:15 -08:00
2019-11-07 10:55:15 -08:00
2019-11-10 23:17:47 -08:00
2019-11-07 10:55:15 -08:00
2019-11-09 21:43:20 -08:00
2019-11-07 10:55:15 -08:00
2019-11-19 03:51:44 -08:00
2019-11-07 10:55:15 -08:00
2019-11-09 21:43:20 -08:00
2019-11-19 03:51:44 -08:00
2019-11-12 14:11:53 -08:00
2019-10-09 01:40:40 -07:00
2019-10-09 01:40:40 -07:00
2019-10-09 01:40:40 -07:00
2019-10-09 01:40:40 -07:00
2019-11-09 21:43:20 -08:00
2019-11-09 21:43:20 -08:00
2019-11-07 10:55:15 -08:00
2019-11-07 10:55:15 -08:00
2019-11-09 21:43:20 -08:00
2019-11-09 21:43:20 -08:00
2019-11-07 10:55:15 -08:00
2019-11-10 23:17:47 -08:00
2019-11-12 14:11:53 -08:00
2019-11-07 10:55:15 -08:00
2019-11-10 23:17:47 -08:00
2019-11-13 19:53:14 -08:00
2019-11-07 10:55:15 -08:00
2019-10-09 01:40:40 -07:00
2019-10-22 19:51:50 -07:00
2019-11-09 21:43:20 -08:00
2019-10-09 00:18:53 -07:00
2019-11-07 10:55:15 -08:00
2019-11-07 10:55:15 -08:00
2019-11-10 23:17:47 -08:00
2019-11-07 10:55:15 -08:00
2019-09-21 15:35:03 -07:00
2019-11-07 10:55:15 -08:00
2019-11-09 21:43:20 -08:00
2019-11-12 14:11:53 -08:00
2019-11-07 10:55:15 -08:00
2019-11-10 23:17:47 -08:00
2019-11-10 23:17:47 -08:00
2019-11-09 21:43:20 -08:00
2019-11-09 21:43:20 -08:00
2019-11-19 03:51:44 -08:00
2019-11-19 03:51:44 -08:00
2019-11-10 23:17:47 -08:00
2019-11-10 23:17:47 -08:00
2019-11-10 23:17:47 -08:00
2019-11-07 10:55:15 -08:00
2019-10-09 01:40:40 -07:00
2019-11-07 10:55:15 -08:00
2019-11-07 10:55:15 -08:00
2019-11-07 10:55:15 -08:00
2019-11-07 10:55:15 -08:00
2019-11-09 21:43:20 -08:00
2019-11-07 10:55:15 -08:00
2019-11-09 21:43:20 -08:00