-
Notifications
You must be signed in to change notification settings - Fork 725
Open
Description
Is cabal list-bin too sensitive to configuration?
It requires me to pass the same flags as to build. In contrast, cabal-plan list-bin does not require this.
(Example project taken from https://github.com/asr/pdfname.)
/pdfname$ cabal build --allow-newer=pdfname:base
(succeeds)
/pdfname$ cabal-plan list-bin pdfname
(succeeds)
/pdfname$ cabal list-bin pdfname
(after a 2 sec wait, fails)
Error: cabal: Could not resolve dependencies...
/pdfname$ cabal list-bin pdfname --allow-newer=pdfname:base
(succeeds)
I wonder whether list-bin could be more robust wrt. missing flags. Some flags do matter to find the correct executable (like -w), but some won't (like --allow-newer).
Reactions are currently unavailable