Skip to content

fix(cabal-install): Suggest a concrete target when cabal run matches multiple executables - #12266

Open
zlonast wants to merge 3 commits into
haskell:masterfrom
zlonast:zlonast/multiple-executable
Open

fix(cabal-install): Suggest a concrete target when cabal run matches multiple executables#12266
zlonast wants to merge 3 commits into
haskell:masterfrom
zlonast:zlonast/multiple-executable

Conversation

@zlonast

@zlonast zlonast commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

fix: #12262

  Error: [Cabal-7070]
  The run command is for running a single executable at once. The target 'agent-cli' refers to the package agent-cli-0.1.0.0 which includes
  - executables: agent-cli, agent-telegram and eval-ghci-vs-bash
  - test-suites: agent-cli-test
  - benchmarks: image-preview-latency-bench and subagent-retention-bench
+
+ You need to specify which executable cabal should use. Try one of those:
+ - cabal run agent-cli:agent-cli
+ - cabal run agent-cli:agent-telegram
+ - cabal run agent-cli:eval-ghci-vs-bash

Template Α: This PR modifies behaviour or interface

Include the following checklist in your PR:

@zlonast zlonast added attention: needs-review re: error-message Concerning error messages delivered to the user labels Aug 24, 2026
@zlonast
zlonast force-pushed the zlonast/multiple-executable branch from 05ef31f to 12ebea4 Compare August 24, 2026 06:58
@zlonast
zlonast force-pushed the zlonast/multiple-executable branch from 12ebea4 to c9b0a8c Compare August 24, 2026 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

attention: needs-review re: error-message Concerning error messages delivered to the user

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bad error message on cabal run with multiple executable

1 participant