Handle trailing path separator in package DB names (#16360)
Package DB directories with trailing separator (provided via GHC_PACKAGE_PATH or via -package-db) resulted in incorrect calculation of ${pkgroot} substitution variable. Keep the trailing separator while resolving as directory or file, but remove it before dropping the last path component with takeDirectory. Closes #16360.
Showing
- compiler/main/Packages.hs 4 additions, 2 deletionscompiler/main/Packages.hs
- testsuite/tests/driver/T16360/Hello.hs 3 additions, 0 deletionstestsuite/tests/driver/T16360/Hello.hs
- testsuite/tests/driver/T16360/Makefile 17 additions, 0 deletionstestsuite/tests/driver/T16360/Makefile
- testsuite/tests/driver/T16360/all.T 1 addition, 0 deletionstestsuite/tests/driver/T16360/all.T
- testsuite/tests/driver/T16360/test/Test.hs 4 additions, 0 deletionstestsuite/tests/driver/T16360/test/Test.hs
- testsuite/tests/driver/T16360/test/test.pkg 8 additions, 0 deletionstestsuite/tests/driver/T16360/test/test.pkg
Loading
Please register or sign in to comment