From cdec7a96f7af2626e637ac79b2fd36e001d82d1c Mon Sep 17 00:00:00 2001 From: David Binder Date: Thu, 24 Aug 2023 13:19:13 +0200 Subject: [PATCH 1/5] Fix issue #444 (hakyll runs out of file handles) On systems which don't provide enough file handles to processes, building the site with hakyll can fail since hakyll holds on to too many file handles at the same time. This commit bumps the minimum requirement on hakyll to version 4.16.1.0, which fixes the problem. --- message-index/message-index.cabal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/message-index/message-index.cabal b/message-index/message-index.cabal index 2270da6f..26e06b1f 100644 --- a/message-index/message-index.cabal +++ b/message-index/message-index.cabal @@ -6,7 +6,7 @@ cabal-version: 2.0 executable site main-is: site.hs build-depends: base == 4.* - , hakyll ^>= 4.16.0.0 + , hakyll ^>= 4.16.1.0 , commonmark >= 0.2.2 , filepath ^>= 1.4 , microlens ^>= 0.4.12 From 8ba7ea4639ab2bb705549ebb88eb7141f76c65de Mon Sep 17 00:00:00 2001 From: David Binder Date: Thu, 24 Aug 2023 13:41:45 +0200 Subject: [PATCH 2/5] Add hakyll-4.16.1.0 to extra-deps of stack.yaml --- message-index/stack.yaml | 2 ++ message-index/stack.yaml.lock | 11 +++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/message-index/stack.yaml b/message-index/stack.yaml index a9e214ac..71ba1e13 100644 --- a/message-index/stack.yaml +++ b/message-index/stack.yaml @@ -1,2 +1,4 @@ resolver: lts-19.10 +extra-deps: + - hakyll-4.16.1.0 # system-ghc: true diff --git a/message-index/stack.yaml.lock b/message-index/stack.yaml.lock index 1e5ff0fe..116b8451 100644 --- a/message-index/stack.yaml.lock +++ b/message-index/stack.yaml.lock @@ -3,10 +3,17 @@ # For more information, please see the documentation at: # https://docs.haskellstack.org/en/stable/lock_files -packages: [] +packages: +- completed: + hackage: hakyll-4.16.1.0@sha256:2f5984ec2f0bfc066279f61747839c149f90fbc0d4655c3cf51acda2cf7111b6,9845 + pantry-tree: + sha256: 8bcd5b6e99b7e461508c39e7c71dfe7e90d0dae2620b98464d697df5ed2fda23 + size: 9185 + original: + hackage: hakyll-4.16.1.0 snapshots: - completed: + sha256: 005f204647467d65c4ab549a5ca35d54b3d90a84a99a4ffc5d421a4018854fe2 size: 618509 url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/19/10.yaml - sha256: 005f204647467d65c4ab549a5ca35d54b3d90a84a99a4ffc5d421a4018854fe2 original: lts-19.10 From 2d3a67a5315d8d88431491f9cc531ceb184f1af5 Mon Sep 17 00:00:00 2001 From: David Binder Date: Thu, 24 Aug 2023 16:41:15 +0200 Subject: [PATCH 3/5] Remove comment from stack.yaml --- message-index/stack.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/message-index/stack.yaml b/message-index/stack.yaml index 71ba1e13..e54da7c1 100644 --- a/message-index/stack.yaml +++ b/message-index/stack.yaml @@ -1,4 +1,3 @@ resolver: lts-19.10 extra-deps: - hakyll-4.16.1.0 -# system-ghc: true From 0841ae3ff1b3c5ab938a78d2e3fd6f3288ca3adc Mon Sep 17 00:00:00 2001 From: David Binder Date: Thu, 24 Aug 2023 17:51:32 +0200 Subject: [PATCH 4/5] bump --- message-index/stack.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/message-index/stack.yaml b/message-index/stack.yaml index e54da7c1..4e35d48a 100644 --- a/message-index/stack.yaml +++ b/message-index/stack.yaml @@ -1,3 +1,3 @@ resolver: lts-19.10 extra-deps: - - hakyll-4.16.1.0 + - hakyll-4.16.1.0 From 86845acc881db47ca4d77e3615577f7bf2edc4e9 Mon Sep 17 00:00:00 2001 From: David Binder Date: Thu, 24 Aug 2023 18:00:14 +0200 Subject: [PATCH 5/5] Fix stack build error --- .github/workflows/stack-ci.yml | 1 + message-index/stack.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/stack-ci.yml b/.github/workflows/stack-ci.yml index 223f56d1..a7e918c7 100644 --- a/.github/workflows/stack-ci.yml +++ b/.github/workflows/stack-ci.yml @@ -27,3 +27,4 @@ jobs: - uses: freckle/stack-action@v4 with: working-directory: message-index + pedantic: false diff --git a/message-index/stack.yaml b/message-index/stack.yaml index 4e35d48a..e54da7c1 100644 --- a/message-index/stack.yaml +++ b/message-index/stack.yaml @@ -1,3 +1,3 @@ resolver: lts-19.10 extra-deps: - - hakyll-4.16.1.0 + - hakyll-4.16.1.0