Implement cross-platform POSIX path normalization function for establishing ELF relationships #13
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
The ELF relationships code currently uses
os.path.normpath
to cleanup and normalize paths, however the behavior of this function is different on Windows than POSIX systems tested (including macOS). This leads to the unit tests for ELF relationships failing on Windows systems.The description of the Clean function in Go describes a working normalization function for that would be suitable for this, with the exception of a "//" appearing at the start of a path remaining intact. A few examples of this special behavior:
The Python docs for the
os.path.normpath
function can be found at https://docs.python.org/3/library/os.path.html#os.path.normpath and they link to the IEEE Standard on pathname resolutionThis fix will also make CI tests pass for #7.
The text was updated successfully, but these errors were encountered: