Skip to content

Handle trailing path separator in package DB names (#16360)

KevinBuhr requested to merge wip/T16360 into master

Test case and suggested fix for #16360 (closed).

From commit:

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.

Merge request reports