Commit 9d238791 authored by KevinBuhr's avatar KevinBuhr Committed by Marge Bot

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.
parent b9fe91fc
Pipeline #6758 failed with stages
in 118 minutes and 49 seconds