From 90fce189859f2160350f68afcc6cdf7b19ba8f9f Mon Sep 17 00:00:00 2001 From: Martijn Bastiaan Date: Wed, 20 Jan 2021 20:30:20 +0100 Subject: [PATCH] Switch back to hackage.haskell.org 's3.amazonaws.com' is not meant to serve clients around the world, as it is hosted in the US only. This causes bandwidth to be severely throttled for, amongst others, European users. This has been observed by users in the following issue: https://github.com/commercialhaskell/stack/issues/2240 At some periods, bandwidth drops to effectively zero, rendering Stack unusable. Measurements can be found here: https://github.com/commercialhaskell/stack/issues/2240#issuecomment-761197177 'hackage.haskell.org' is served from Fastly's CDN, therefore mitigating these issues. --- ChangeLog.md | 3 +++ src/Pantry.hs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog.md b/ChangeLog.md index 1ee52d93..cab576fb 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,8 @@ # Changelog for pantry +## v0.5.1.5 +* Switch back to hackage.haskell.org [#30](https://github.com/commercialhaskell/pantry/pull/30) + ## v0.5.1.4 * Allow building with persistent-2.11 [#28](https://github.com/commercialhaskell/pantry/pull/28) diff --git a/src/Pantry.hs b/src/Pantry.hs index 1858a0eb..eb9876a7 100644 --- a/src/Pantry.hs +++ b/src/Pantry.hs @@ -295,7 +295,7 @@ defaultHackageSecurityConfig = HackageSecurityConfig , "fe331502606802feac15e514d9b9ea83fee8b6ffef71335479a2e68d84adc6b0" ] , hscKeyThreshold = 3 - , hscDownloadPrefix = "https://s3.amazonaws.com/hackage.fpcomplete.com/" + , hscDownloadPrefix = "https://hackage.haskell.org/" , hscIgnoreExpiry = False }