commercialhaskell / stack

The Haskell Tool Stack
http://haskellstack.org
BSD 3-Clause "New" or "Revised" License
3.95k stars 842 forks source link

Local extra-dep executable overwritten by project package executable, without warning #6504

Open mpilgrem opened 4 months ago

mpilgrem commented 4 months ago

It appears that:

In the case of project packages with executables with the same name, Stack issues a warning. That is handled by Stack.Build.warnIfExecutablesWithSameNameCouldBeOverwritten (following resolution of #1198). However, no warning is triggered if the clash involves a local extra-dep's executable.

stack --version
Version 2.16.0, Git revision 2adc11c27bdaa6a49b1cfeeebb1299710f865185 (dirty) (10623 commits) PRE-RELEASE x86_64