Implement DNS-based mirror bootstrap protocol
This way `cabal` can bootstrap secure repos even if the primary Hackage instance is currently unreachable, as long as there's at least one reachable and working secure mirror available. NB: This new code-path is only used for the initial bootstrap. Once the repository cache has been bootstrapped, its `mirrors.json` meta-data is used instead. See also https://github.com/well-typed/hackage-security/issues/171
Showing
- cabal-install/Distribution/Client/GlobalFlags.hs 19 additions, 7 deletionscabal-install/Distribution/Client/GlobalFlags.hs
- cabal-install/Distribution/Client/Security/DNS.hs 146 additions, 0 deletionscabal-install/Distribution/Client/Security/DNS.hs
- cabal-install/cabal-install.cabal 1 addition, 0 deletionscabal-install/cabal-install.cabal
Loading
Please register or sign in to comment