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 tries to build all components in a package #9075

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

install --lib tries to build all components in a package #9075

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

Comments

@georgefst
Copy link

$ cabal install --dry --package-env . --lib pretty-simple-4.1.1.0
Resolving dependencies...
Build profile: -w ghc-9.4.5 -O1
In order, the following would be built (use -v for more details):
 - pretty-simple-4.1.1.0 (lib:pretty-simple, exe:pretty-simple) (requires build)

The executable is not a requirement, and shouldn't need to be built. If I try explicitly requesting the library with lib:pretty-simple, I see curl port number errors similarly to #9074.

And it's not just executables. I've also seen Cabal similarly trying to build all libraries in a package where some libraries aren't actually depended on by the requested library (for the record, this involved this branch via source-repository-package).

@ulysses4ever ulysses4ever added type: enhancement re: install --lib Concerning `cabal install --lib` labels Jun 30, 2023
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