Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
andreabedini committed Oct 31, 2024
1 parent 9015a7b commit 9599881
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
3 changes: 1 addition & 2 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
packages: .
index-state: 2023-09-10T21:31:08Z
with-compiler: ghc-9.4.8
index-state: 2024-10-31T00:00:00Z

tests: True
test-show-details: direct
12 changes: 6 additions & 6 deletions foliage.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ executable foliage
Network.URI.Orphans

build-depends:
base >=4.14.3.0 && <4.20,
base >=4.14.3.0 && <4.21,
aeson >=2.2 && <2.3,
base16 >=0.3.2.0 && <1.1,
binary >=0.8.9.0 && <0.9,
bytestring >=0.10.12.0 && <0.13,
Cabal >=3.10 && <3.12,
Cabal-syntax >=3.10 && <3.12,
cabal-install >=3.10 && <3.12,
Cabal >=3.10 && <3.15,
Cabal-syntax >=3.10 && <3.15,
cabal-install >=3.10 && <3.15,
containers >=0.6.5.1 && <0.7,
cryptohash-sha256 >=0.11.102.1 && <0.12,
directory >=1.3.6.0 && <1.4,
Expand All @@ -61,13 +61,13 @@ executable foliage
optparse-applicative >=0.17.0.0 && <0.18,
shake >=0.19.6 && <0.20,
stache >=2.3.3 && <2.4,
tar >=0.5.1.1 && <0.6,
tar >=0.5.1.1 && <0.7,
text >=1.2.4.1 && <2.2,
time >=1.9.3 && <1.13,
time-compat >=1.9.6.1 && <1.10,
tomland >=1.3.3.1 && <1.4,
vector >=0.13.0.0 && <0.14,
with-utf8 >=1.0.2.3 && <1.1,
with-utf8 >=1.0.2.3 && <1.2,
zlib >=0.6.2.3 && <0.7,

test-suite foliage-test-suite
Expand Down
12 changes: 6 additions & 6 deletions tests/Tests.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{-# LANGUAGE LambdaCase #-}

import Codec.Archive.Tar.Entry (Entry (..))
import Codec.Archive.Tar.Entry (entryTime)
import Foliage.Tests.Tar
import Foliage.Tests.Utils
import System.Directory
Expand Down Expand Up @@ -29,22 +29,22 @@ main = do
doesFileExist "_repo/snapshot.json" @? "snapshot.json does not exist"
doesFileExist "_repo/timestamp.json" @? "timestamp.json does not exist"

withTarball "_repo/01-index.tar" $ \TarballAccessFn{lookupEntry} -> do
withTarball "_repo/01-index.tar" $ \TarballAccessFn {lookupEntry} -> do
lookupEntry "pkg-a/2.3.4.5/pkg-a.cabal" >>= \case
Nothing ->
assertFailure "entry for pkg-a-2.3.4.5 is missing"
Just entry -> do
entryTime entry @?= 1648534790
, ---
entryTime entry @?= 1648534790,
---
testCaseSteps "accepts --no-signatures" $ \step ->
inTemporaryDirectoryWithFixture "tests/fixtures/simple" $ do
step "Building repository"
callCommand "foliage build --no-signatures"

step "Running checks"
doesExist <- doesDirectoryExist "_keys"
doesExist @?= False
, ---
doesExist @?= False,
---
testCaseSteps "accepts --write-metadata" $ \step ->
inTemporaryDirectoryWithFixture "tests/fixtures/simple" $ do
step "Building repository"
Expand Down

0 comments on commit 9599881

Please sign in to comment.