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
When multiple repositories (e.g. both head.hackage and regular hackage) are present in ~/.cabal/config, a single package might come from different repos, how does cabal decide from which repo is the package picked up? The documentation only says:
If you want, you can configure multiple repositories, and cabal will combine them and be able to download packages from any of them.
The intuition would be selecting from the first repo which contains the package, but it's actually not the case, e.g. when running cabal new-install dlist or cabal new-build for a local package depending on dlist, the dlist package from head.hackage is not picked up, even when head.hackage comes before regular hackage in the global config.
The text was updated successfully, but these errors were encountered:
Yes, last one wins. I'd already implemented a priority field, but that effort is blocked on e.g. #6101 (I really don't want to touch any of ReadP parsers at this point of time).
When multiple repositories (e.g. both head.hackage and regular hackage) are present in
~/.cabal/config
, a single package might come from different repos, how doescabal
decide from which repo is the package picked up? The documentation only says:The intuition would be selecting from the first repo which contains the package, but it's actually not the case, e.g. when running
cabal new-install dlist
orcabal new-build
for a local package depending ondlist
, thedlist
package from head.hackage is not picked up, even when head.hackage comes before regular hackage in the global config.The text was updated successfully, but these errors were encountered: