haskell / haskell/cabal

cabal install from a url doesn't work for libraries

Open
#8,335 18 comments 0 reactions 0 assignees View on GitHub
attention: pr-welcome cabal-install: cmd/install re: install --lib type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**Describe the bug**
`cabal install` with the `--lib` flag and a URL doesn't work, it tries to install an executable instead. This makes testing candidate releases more difficult.

**To Reproduce**
Steps to reproduce the behavior:

```
alex@pop-os:~$ cabal install --lib https://hackage.haskell.org/package/tidal-1.9.0/candidate/tidal-1.9.0.tar.gz
Downloading
https://hackage.haskell.org/package/tidal-1.9.0/candidate/tidal-1.9.0.tar.gz
Resolving dependencies...
cabal: Cannot build all the executables in the project because none of the
packages contain any executables. Check the .cabal files for the packages and
make sure that they properly declare the components that you expect.
```

**System information**
- Operating system - Linux PopOS
- `cabal 3.6.2.0`, `ghc 9.2.3`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.