flora-pm / flora-server

A package index for the Haskell ecosystem
https://flora.pm/about
Other
124 stars 38 forks source link

[FLORA-442] Implement package import from multiple repos #444

Closed tchoutri closed 11 months ago

tchoutri commented 11 months ago

Proposed changes

This PR adapts the codebase to be less (or more) hackage-specific in several places:

  if
      | name `Set.member` coreLibraries -> Namespace "haskell"
      | name `Set.member` repositoryPackages -> Namespace repo
      | otherwise -> Namespace "hackage"

This allows us to make reasonable decisions in the following cases:

Contributor checklist