Skip to content
Snippets Groups Projects
Commit 78db6491 authored by FraserBrooks's avatar FraserBrooks Committed by mergify-bot
Browse files

Canonicalize path util and fix NoTargetsError when proj root symlink

When searching for the primary package, the return from a call
to getCurrentDirectory is compared via (==) equality with a
canonicalised path resulting in an inability to find the primary
package if no targets are specified when the project root is in,
or contains a symlink/junction or, when, under certain conditions,
the capitalisation of the drive letters don't match on Windows.

This breaks cabal functionality in emacs' haskell-mode (at least on
Windows) as it relies on automatic package detection.

With this commit, the test case added in the commit prior now passes.
parent f1a91921
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment