We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If a package has a library and sublibraries, the sublibraries are installed and registered.
However, if a package has only sublibraries, the sublibraries are installed but not registered. That appears to me to be a bug.
let hasLibrary = case packageLibraries package of NoLibraries -> False HasLibraries _ -> True packageHasComponentSet f = not $ Set.null $ f package hasInternalLibrary = packageHasComponentSet packageInternalLibraries hasExecutables = packageHasComponentSet packageExes shouldCopy = not isFinalBuild && (hasLibrary || hasInternalLibrary || hasExecutables) when shouldCopy $ withMVar eeInstallLock $ \() -> do announce "copy/register" eres <- try $ cabal KeepTHLoading ["copy"] case eres of Left err@CabalExitedUnsuccessfully{} -> throwM $ CabalCopyFailed (packageBuildType package == C.Simple) (displayException err) _ -> pure () when hasLibrary $ cabal KeepTHLoading ["register"] -- <<<< This seems to be the problem
The text was updated successfully, but these errors were encountered:
a850863
Merge pull request #6319 from commercialhaskell/fix6318
f0b7fa0
Fix #6318 Register sublibraries if no library
No branches or pull requests
If a package has a library and sublibraries, the sublibraries are installed and registered.
However, if a package has only sublibraries, the sublibraries are installed but not registered. That appears to me to be a bug.
The text was updated successfully, but these errors were encountered: