Support extracting gzip on the fly
Some checks failed
Build / audit (push) Successful in 14m44s
Build / test (push) Failing after 5m47s

This commit is contained in:
2024-03-03 17:12:29 +01:00
parent 4c06ae274b
commit e5bde183a5
4 changed files with 41 additions and 13 deletions

View File

@ -61,7 +61,7 @@ import System.Console.ANSI
, ConsoleLayer(..)
)
import System.Directory (listDirectory, doesDirectoryExist, withCurrentDirectory, removeDirectoryRecursive)
import Control.Monad (filterM)
import Control.Monad (filterM, void)
import Data.List (isPrefixOf, isSuffixOf, partition)
import Conduit (runConduitRes, (.|), sourceFile)
import Data.Functor ((<&>))
@ -407,7 +407,7 @@ reuploadWithTemplate downloadTemplate commands packagePath version = do
relativeTarball = Text.unpack $ packagePath <> "/" <> downloadFileName
tarball = repository' </> relativeTarball
extractRemote uri' packagePath
void $ extractRemote uri' packagePath
download' <- handleReupload relativeTarball downloadFileName
checksum <- liftIO $ runConduitRes $ sourceFile tarball .| sinkHash