haskell / haskell/cabal

`cabal run` stopped recognizing target name after `--` with cabal-install 3.18.1.0

Open
#12,231 26 comments 2 reactions 0 assignees View on GitHub
cabal-install: cmd/run documentation regression in 3.18
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

I haven't had time to dig into it or make a minimal reproducer, but I wanted to report a problem I ran into that seems to be introduced by cabal-install 3.18.1.0. It works fine with 3.16.1.0. See the comment here: https://github.com/tfausak/saturn/pull/58#issuecomment-5294979002.

After running `cabal build`, I try to `cabal run ..` the test suite, which reports the executable itself as an unexpected argument:

```
$ cabal run -- saturn-test-suite --randomize --strict
saturn-test-suite: unexpected argument `saturn-test-suite'
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the `cabal run -- saturn-test-suite --randomize --strict` command and compare cabal-install 3.18.1.0 with 3.16.1.0, using the linked Saturn discussion for context. Done means the target name is no longer passed as an unexpected argument and the behavior is covered by a suitable regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.