Open
Description
I reproduced the issue on master (3781531) by running the following command in the cabal repository:
$ cabal new-build test:unknown-test-suite
cabal: Internal error in target matching. It should always be possible to find
a syntax that's sufficiently qualified to give an unambiguous match. However
when matching 'test:unknown-test-suite' we found test:unknown-test-suite
(unknown-component) which does not have an unambiguous syntax. The possible
syntax and the targets they match are as follows:
cabal: <<loop>>
It also occurs when I run the same command on a simple project with one directory containing a simple .cabal file:
name: example
version: 1.0
build-type: Simple
cabal-version: >= 1.2
library
The error message is from D.Client.TargetSelector: