haskell / haskell/cabal

cabal sdist target selection is broken

Open
#11,385 5 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.