Skip to content

install --lib doesn't work with multi-lib packages #9074

Open

Description

@georgefst

While cabal install --lib has often been spoken about as being barely-supported, it mostly works pretty well these days. However, as far as I can tell, it seems to be impossible to install from packages with multiple public libraries (aside from installing the "main" library from that package):

$ cabal install --dry --package-env . --lib spotify:spotify-servant 
Resolving dependencies...
Error: cabal: Cannot build the executable spotify-servant from the package
spotify, because the package does not contain a executable with that name.

$ cabal install --dry --package-env . --lib spotify:lib:spotify-servant 
Downloading spotify:lib:spotify-servant
Error: cabal: '/usr/bin/curl' exited with an error:
curl: (3) URL rejected: Port number was not a decimal number between 0 and
65535

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    re: install --libtype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions