Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
georgefst opened this issue Jun 30, 2023 · 0 comments
Open

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

georgefst opened this issue Jun 30, 2023 · 0 comments
Labels
re: install --lib Concerning `cabal install --lib` type: enhancement

Comments

@georgefst
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
re: install --lib Concerning `cabal install --lib` type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants