File tree 6 files changed +230
-331
lines changed
6 files changed +230
-331
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ validateTarballs (TarballFilter etool versionRegex) dls gt = do
256
256
case etool of
257
257
Right (Just GHCup ) -> do
258
258
tmpUnpack <- lift mkGhcupTmpDir
259
- _ <- liftE $ download dli tmpUnpack Nothing
259
+ _ <- liftE $ download (_dlUri dli) ( Just (_dlHash dli)) tmpUnpack Nothing False
260
260
pure Nothing
261
261
Right _ -> do
262
262
p <- liftE $ downloadCached dli Nothing
@@ -266,7 +266,7 @@ validateTarballs (TarballFilter etool versionRegex) dls gt = do
266
266
$ p
267
267
Left ShimGen -> do
268
268
tmpUnpack <- lift mkGhcupTmpDir
269
- _ <- liftE $ download dli tmpUnpack Nothing
269
+ _ <- liftE $ download (_dlUri dli) ( Just (_dlHash dli)) tmpUnpack Nothing False
270
270
pure Nothing
271
271
case r of
272
272
VRight (Just basePath) -> do
Original file line number Diff line number Diff line change @@ -2137,7 +2137,7 @@ upgradeGHCup mtarget force' = do
2137
2137
dli <- liftE $ getDownloadInfo GHCup latestVer
2138
2138
tmp <- lift withGHCupTmpDir
2139
2139
let fn = " ghcup" <> exeExt
2140
- p <- liftE $ download dli tmp (Just fn)
2140
+ p <- liftE $ download (_dlUri dli) ( Just (_dlHash dli)) tmp (Just fn) False
2141
2141
let destDir = takeDirectory destFile
2142
2142
destFile = fromMaybe (binDir </> fn) mtarget
2143
2143
lift $ $ (logDebug) [i |mkdir -p #{destDir}|]
You can’t perform that action at this time.
0 commit comments