Skip to content

Commit 1bca72b

Browse files
committed
etc/check-lts.sh: bootstrap pantry db with fresh download
We lost the GH workflow cache earlier this year during some downtime and it has failed to regenerate the pantry db for weeks/months. So this should help get up and running again. The current error being hit looks like: Processed 189600 cabal files Processed 190000 cabal files Processed 190400 cabal files Package index cache populated Reusing local file /home/runner/work/lts-haskell/lts-haskell/build-constraints/lts-24-build-constraints.yaml Writing constraints.yaml Writing snapshot-incomplete.yaml Writing snapshot.yaml curator: HttpExceptionRequest Request { host = "hackage.haskell.org" port = 443 secure = True requestHeaders = [("User-Agent","Haskell pantry package")] path = "/package/fingertree-0.1.6.1.tar.gz" queryString = "" method = "GET" proxy = Nothing rawBody = False redirectCount = 10 responseTimeout = ResponseTimeoutDefault requestVersion = HTTP/1.1 proxySecureMode = ProxySecureWithConnect } InvalidChunkHeaders Error: Process completed with exit code 1.
1 parent 7fadd27 commit 1bca72b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build-constraints/etc/check-lts.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ set -euxo pipefail
55
ETC=$(cd $(dirname $0) ; pwd)
66
export GHCVER=$(sed -n "s/^ghc-version: \"\(.*\)\"/\1/p" "$ETC/../lts-24-build-constraints.yaml")
77

8+
# bootstrap pantry db since GH action keeps fails to generate fresh one
9+
if [ ! -e ~/.stack/pantry/pantry.sqlite3 ]; then
10+
curl -L https://petersen.fedorapeople.org/pantry.sqlite3.gz | gunzip > ~/.stack/pantry/pantry.sqlite3
11+
fi
12+
813
# Download and unpack the stack executable
914
mkdir -p ~/.local/bin
1015
export PATH=$HOME/.local/bin:$PATH

0 commit comments

Comments
 (0)