bug: export::path:absolute
function fails when TS_RS_EXPORT_DIR
is set to an absolute path and the path_bug
test is executed
#322
Labels
bug
Something isn't working
Describe the bug
Certain combinations of absolute paths and
..
/.
path components can trick theaboslute
function into doing nothingTo Reproduce
.cargo/config.toml
with the following content:cargo test
Why is this happening?
The path
./whatever
is automatically transformed into an absolute path bycargo
due to therelative
flag.The
path_bug
test checks if exporting to../somewhere/
works.The paths are combined into something like
/usr/me/../somewhere
and passed into theabsolute
function.The
absolute
function, seeing the path starts at the root directory/
assumes this is already an absolute path and does nothingThe
diff_paths
function, not expecting theabsolute
function to return a path containing.
or..
, panicsVersion
8.1.0
The text was updated successfully, but these errors were encountered: