mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-02-07 11:57:28 +01:00
Use TLS manager
This commit is contained in:
parent
baf192598b
commit
18a07fa94a
@ -1,3 +1,7 @@
|
|||||||
|
## 0.2.1.0
|
||||||
|
|
||||||
|
* Use TLS manager (to download from Github)
|
||||||
|
|
||||||
## 0.2.0.0
|
## 0.2.0.0
|
||||||
|
|
||||||
* Minor fixes
|
* Minor fixes
|
||||||
|
|||||||
@ -12,6 +12,7 @@ import Data.Text.Read (decimal)
|
|||||||
import Data.Time
|
import Data.Time
|
||||||
import Data.Yaml (decodeFileEither, encodeFile)
|
import Data.Yaml (decodeFileEither, encodeFile)
|
||||||
import Network.HTTP.Client
|
import Network.HTTP.Client
|
||||||
|
import Network.HTTP.Client.TLS (tlsManagerSettings)
|
||||||
import Stackage.BuildConstraints
|
import Stackage.BuildConstraints
|
||||||
import Stackage.BuildPlan
|
import Stackage.BuildPlan
|
||||||
import Stackage.CheckBuildPlan
|
import Stackage.CheckBuildPlan
|
||||||
@ -129,7 +130,7 @@ renderLTSVer lts = fpFromText $ concat
|
|||||||
]
|
]
|
||||||
|
|
||||||
completeBuild :: BuildType -> IO ()
|
completeBuild :: BuildType -> IO ()
|
||||||
completeBuild buildType = withManager defaultManagerSettings $ \man -> do
|
completeBuild buildType = withManager tlsManagerSettings $ \man -> do
|
||||||
hSetBuffering stdout LineBuffering
|
hSetBuffering stdout LineBuffering
|
||||||
|
|
||||||
putStrLn $ "Loading settings for: " ++ tshow buildType
|
putStrLn $ "Loading settings for: " ++ tshow buildType
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: stackage
|
name: stackage
|
||||||
version: 0.2.0.0
|
version: 0.2.1.0
|
||||||
synopsis: "Stable Hackage," tools for creating a vetted set of packages from Hackage.
|
synopsis: "Stable Hackage," tools for creating a vetted set of packages from Hackage.
|
||||||
description: Please see <http://www.stackage.org/package/stackage> for a description and documentation.
|
description: Please see <http://www.stackage.org/package/stackage> for a description and documentation.
|
||||||
homepage: https://github.com/fpco/stackage
|
homepage: https://github.com/fpco/stackage
|
||||||
@ -53,6 +53,7 @@ library
|
|||||||
, yaml
|
, yaml
|
||||||
, unix-compat
|
, unix-compat
|
||||||
, http-client
|
, http-client
|
||||||
|
, http-client-tls
|
||||||
, temporary
|
, temporary
|
||||||
, data-default-class
|
, data-default-class
|
||||||
, stm
|
, stm
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user