-
Notifications
You must be signed in to change notification settings - Fork 0
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
Evaluate switching to std::path::absolute()
once that method is stabilized
#30
Comments
Looks like |
TL;DR: You can't correctly resolve |
We explicitly don't want to resolve leaf symlinks when determining the name of reclass entities. We already resolve non-leaf symlinks when walking the reclass inventory directory tree, cf. Lines 121 to 193 in 7b34c22
|
Context
Currently, we're using a custom
to_lexical_absolute()
function (copied from https://internals.rust-lang.org/t/path-to-lexical-absolute/14940) to transform relative paths to their absolute counterparts without following symlinks, cf.reclass-rs/src/lib.rs
Lines 47 to 69 in 1780735
There's discussions around stabilizing
std::path::absolute()
which is currently available as an unstable feature in nightly Rust. We should check if we can replace our customto_lexical_absolute()
with this method once it's stabilized.Alternatives
Do nothing and keep maintaining a function that could be replaced by a stdlib method.
The text was updated successfully, but these errors were encountered: