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 #1227

Closed
georgefst opened this issue Jun 30, 2023 · 3 comments
Closed

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

georgefst opened this issue Jun 30, 2023 · 3 comments

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
@georgefst georgefst changed the title Issues with install --lib and multi-lib packages install --lib doesn't work with multi-lib packages Jun 30, 2023
@ulysses4ever
Copy link
Contributor

Should be moved to the cabal repo

@georgefst
Copy link
Author

My bad! I came here from #1119 and forget where I was. I'll move it now.

@georgefst
Copy link
Author

haskell/cabal#9074

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants