Skip to content

Commit 276fb62

Browse files
committed
gitlab-ci: workaround centos failure
1 parent 816cd63 commit 276fb62

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.gitlab/ci.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ case "$(uname)" in
8080
cp "$(cabal list-bin -v0 ${args[@]} exe:hls-wrapper)" "$CI_PROJECT_DIR/out/haskell-language-server-wrapper"$EXE_EXTENSION
8181
;;
8282
*)
83+
sed -i.bak -e '/DELETE MARKER FOR CI/,/END DELETE/d' cabal.project # see comment in cabal.project
8384
emake --version
8485
emake GHCUP=ghcup hls
8586
emake GHCUP=ghcup bindist

cabal.project

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,16 @@ constraints:
6565
-- This is benign and won't affect our ability to release to Hackage,
6666
-- because we only depend on `ekg-json` when a non-default flag
6767
-- is turned on.
68+
-- DELETE MARKER FOR CI
69+
-- centos7 has an old version of git which cabal doesn't
70+
-- support. We delete these lines in gitlab ci to workaround
71+
-- this issue, as this is not necessary to build our binaries.
6872
source-repository-package
6973
type:git
7074
location: https://github.com/pepeiborra/ekg-json
7175
tag: 7a0af7a8fd38045fd15fb13445bdcc7085325460
7276
-- https://github.com/tibbe/ekg-json/pull/12
77+
-- END DELETE
7378

7479
allow-newer:
7580
-- ghc-9.4

0 commit comments

Comments
 (0)