mirror of
https://github.com/input-output-hk/foliage.git
synced 2024-09-11 12:25:55 +03:00
Add url for latest cabal file
This commit is contained in:
parent
0d0603b0d3
commit
c300284fbf
@ -108,15 +108,18 @@ buildAction
|
||||
|
||||
cabalEntries <-
|
||||
foldMap
|
||||
( \PreparedPackageVersion {pkgId, pkgTimestamp, originalCabalFilePath, cabalFileRevisions} -> do
|
||||
( \PreparedPackageVersion {pkgId, pkgTimestamp, cabalFilePath, originalCabalFilePath, cabalFileRevisions} -> do
|
||||
-- original cabal file, with its timestamp (if specified)
|
||||
copyFileChanged originalCabalFilePath (outputDir </> "package" </> prettyShow pkgId </> "revision" </> "0" <.> "cabal")
|
||||
cf <- prepareIndexPkgCabal pkgId (fromMaybe currentTime pkgTimestamp) originalCabalFilePath
|
||||
|
||||
-- all revised cabal files, with their timestamp
|
||||
revcf <- for (zip [1 :: Int ..] cabalFileRevisions) $ \(revNum, (timestamp, cabalFilePath)) -> do
|
||||
revcf <- for (zip [1 :: Int ..] cabalFileRevisions) $ \(revNum, (timestamp, path)) -> do
|
||||
copyFileChanged cabalFilePath (outputDir </> "package" </> prettyShow pkgId </> "revision" </> show revNum <.> "cabal")
|
||||
prepareIndexPkgCabal pkgId timestamp cabalFilePath
|
||||
prepareIndexPkgCabal pkgId timestamp path
|
||||
|
||||
-- current version of the cabal file (after the revisions, if any)
|
||||
copyFileChanged cabalFilePath (outputDir </> "package" </> prettyShow pkgId </> prettyShow (pkgName pkgId) <.> "cabal")
|
||||
|
||||
-- WARN: So far Foliage allows publishing a package and a cabal file revision with the same timestamp
|
||||
-- This accidentally works because 1) the following inserts the original cabal file before the revisions
|
||||
|
Loading…
Reference in New Issue
Block a user