Skip to content

Commit

Permalink
Merge pull request #238 from haskell-works/issue-236-makeSyncFromArch…
Browse files Browse the repository at this point in the history
…iveConsiderStoreHashFolder

Issue 236 make sync from archive consider store hash folder
  • Loading branch information
newhoggy authored Nov 6, 2024
2 parents db11feb + 6220f20 commit dc71b91
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
os: macOS-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: haskell/actions/setup@v2
id: setup-haskell
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
tar zcvf "artifacts/$NAME-$arch_os.tar.gz" "$NAME${{env.EXE_EXT}}"
echo "path_targz=$NAME.targz" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: cabal-cache-${{ runner.OS }}-${{ matrix.ghc }}
path: artifacts
Expand All @@ -119,7 +119,7 @@ jobs:
tag: ${{ steps.tag.outputs.tag }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Check if cabal project is sane
run: |
Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Create source distribution
run: |
Expand Down Expand Up @@ -233,7 +233,7 @@ jobs:
os: [ubuntu-latest, macOS-latest, windows-latest]

steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
id: download_artifact
with:
name: cabal-cache-${{ runner.OS }}-${{ matrix.ghc }}
Expand Down
4 changes: 4 additions & 0 deletions src/HaskellWorks/CabalCache/IO/Lazy.hs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ readFirstAvailableResource :: ()
-> ExceptT (OO.Variant e) m (LBS.ByteString, Location)
readFirstAvailableResource envAws (a:|as) maxRetries = do
(, a) <$> readResource envAws maxRetries a
& do OO.catch @NotFound \e -> do
case NEL.nonEmpty as of
Nothing -> OO.throwF (Identity e)
Just nas -> readFirstAvailableResource envAws nas maxRetries
& do OO.catch @AwsError \e -> do
case NEL.nonEmpty as of
Nothing -> OO.throwF (Identity e)
Expand Down

0 comments on commit dc71b91

Please sign in to comment.