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
Solver: Support dependencies on sub-libraries (issue haskell#6039).
This commit tracks dependencies on sub-libraries by extending the functionality
for tracking executables that was added in
e86f838.
It also starts adding support for library visibility, though it currently only
works for source packages. There is a TODO for handling installed packages.
This commit handles visibility similarly to the way that the buildable field is
handled currently. It only checks whether a component is made private by the
current environment and flag constraints at the start of dependency solving.
This means that the solver can treat a component as visible when the visibility
is controlled by an automatic flag, and the build can fail later, depending on
the value that is chosen for the flag.
Fixeshaskell#6038.
showFR _ (NewPackageIsMissingRequiredComponent comp dr) =" (does not contain "++ showExposedComponent comp ++", which is required by "++ showDependencyReason dr ++")"
224
+
showFR _ (NewPackageHasPrivateRequiredComponent comp dr) =" ("++ showExposedComponent comp ++" is private, but it is required by "++ showDependencyReason dr ++")"
223
225
showFR _ (NewPackageHasUnbuildableRequiredComponent comp dr) =" ("++ showExposedComponent comp ++" is not buildable in the current environment, but it is required by "++ showDependencyReason dr ++")"
224
226
showFR _ (PackageRequiresMissingComponent qpn comp) =" (requires "++ showExposedComponent comp ++" from "++ showQPN qpn ++", but the component does not exist)"
227
+
showFR _ (PackageRequiresPrivateComponent qpn comp) =" (requires "++ showExposedComponent comp ++" from "++ showQPN qpn ++", but the component is private)"
225
228
showFR _ (PackageRequiresUnbuildableComponent qpn comp) =" (requires "++ showExposedComponent comp ++" from "++ showQPN qpn ++", but the component is not buildable in the current environment)"
226
229
showFR _ CannotInstall=" (only already installed instances can be used)"
227
230
showFR _ CannotReinstall=" (avoiding to reinstall a package with same version but new dependencies)"
0 commit comments