You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I put an unsatisfiable dependency on the build-depends: of the "wumpus-test-support" sublibrary, and then try to build the main library of "wumpus-json" with cabal build wumpus-json:lib:wumpus-json, I get a build plan error. I thought that perhaps it could still compile, given that the "wumpus-test-support" sublibrary is not required in this case—only for the tests.
Is this the expected behavior?
(I'm using cabal-install 3.6.2.0)
The text was updated successfully, but these errors were encountered:
OOI, if you have a single main library and an executable that does not use it, does cabal build the main library when you ask it specifically to run the executable?
if you have a single main library and an executable that does not use it, does cabal build the main library when you ask it specifically to run the executable?
No, it doesn't build the library.
However, if I put an unsatisfiable dependency on the build-depends: of the library and try to build the executable, the build fails.
Perhaps related to per-component dependency solving? #4087?
Hi, I have a question about how the public sublibraries feature of Cabal works.
Take this repo as an example.
In the repo, the tests in package wumpus-json depend on a public sublibrary ("wumpus-test-support") of wumpus. But the main library of wumpus-json doesn't depend on the sublibrary.
If I put an unsatisfiable dependency on the
build-depends:
of the "wumpus-test-support" sublibrary, and then try to build the main library of "wumpus-json" withcabal build wumpus-json:lib:wumpus-json
, I get a build plan error. I thought that perhaps it could still compile, given that the "wumpus-test-support" sublibrary is not required in this case—only for the tests.Is this the expected behavior?
(I'm using cabal-install 3.6.2.0)
The text was updated successfully, but these errors were encountered: