cabal sdist target selection is broken
Open
cabal-install: cmd/sdist
type: bug
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
```
% cabal sdist splitmix
Error: [Cabal-7151]
The component library cannot be packaged for distribution on its own. Only entire packages may be packaged for distribution.
```
`splitmix` is the name of package. `cabal-install` is hallucinating.
Contributor guide
Research direction
Start by reproducing `cabal sdist splitmix` and tracing the `sdist` target-selection entry point that produces Cabal error 7151. Confirm why the package name is treated as a component library, then verify that the command packages the whole `splitmix` package without reporting the component error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100