Open
Description
- The test case contains a sub-package
foo
that exposes an executable calledbar
- The parent package has a
build-tool-depends
onfoo:bar
foo
also hasbuild-type: Custom
- During
cabal new-build
, cabal tries to buildexe:foo
when it should buildexe:bar
Occurs on both 2.4.1.0
and HEAD at the time of writing
$ cabal new-build
Resolving dependencies...
Build profile: -w ghc-8.6.4 -O1
In order, the following will be built (use -v for more details):
- foo-0.1.0.0 (lib:foo, exe:foo) (configuration changed)
- cabal-subexe-bug-0.1.0.0 (lib) (configuration changed)
- cabal-subexe-bug-0.1.0.0 (lib) (configuration changed)
Configuring foo-0.1.0.0...
setup: Unknown build target 'exe:foo'.
There is no executable component 'foo' or component 'exe'.
cabal: Failed to build foo-0.1.0.0 (which is required by
cabal-subexe-bug-0.1.0.0).