Skip to content

Commit

Permalink
Clear global index state in gitlab CI
Browse files Browse the repository at this point in the history
  • Loading branch information
andreabedini committed Oct 17, 2023
1 parent 7ce9030 commit 15f53b8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitlab/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ args=(
${ADD_CABAL_ARGS}
)

# Make sure we get rid of any global index-state
run cabal update hackage.haskell.org,HEAD
# cabal-install used to have a bug that caused reporting the wrong index-state, so we do it manually too

info "This is the index-state as determined by $CABAL_DIR/packages/hackage.haskell.org/01-index.timestamp: $(cat $CABAL_DIR/packages/hackage.haskell.org/01-index.timestamp)"


run cabal v2-build ${args[@]} cabal-install

mkdir "$CI_PROJECT_DIR/out"
Expand Down

0 comments on commit 15f53b8

Please sign in to comment.