cabal-cache 1.0.0.11 → 1.0.0.12
raw patch · 2 files changed
+6/−4 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
cabal-cache.cabal view
@@ -1,7 +1,7 @@ cabal-version: 2.2 name: cabal-cache-version: 1.0.0.11+version: 1.0.0.12 synopsis: CI Assistant for Haskell projects description: CI Assistant for Haskell projects. Implements package caching. homepage: https://github.com/haskell-works/cabal-cache
src/App/Commands/SyncToArchive.hs view
@@ -106,8 +106,12 @@ let archiveFile = versionedArchiveUri </> T.pack archiveFileBasename let scopedArchiveFile = versionedArchiveUri </> T.pack storePathHash </> T.pack archiveFileBasename let packageStorePath = storePath </> Z.packageDir pInfo- archiveFileExists <- runResourceT $ IO.resourceExists envAws scopedArchiveFile + -- either write "normal" package, or a user-specific one if the package cannot be shared+ let targetFile = if canShare planData (Z.packageId pInfo) then archiveFile else scopedArchiveFile++ archiveFileExists <- runResourceT $ IO.resourceExists envAws targetFile+ unless archiveFileExists $ do packageStorePathExists <- doesDirectoryExist packageStorePath @@ -116,8 +120,6 @@ liftIO $ IO.createDirectoryIfMissing True workingStorePackagePath let rp2 = Z.relativePaths storePath pInfo- -- either write "normal" package, or a user-specific one if the package cannot be shared- let targetFile = if canShare planData (Z.packageId pInfo) then archiveFile else scopedArchiveFile CIO.putStrLn $ "Creating " <> toText targetFile