gitlab-ci: workaround centos failure

This commit is contained in:
Zubin Duggal 2022-09-13 23:28:19 +05:30 committed by wz1000
parent 816cd6301e
commit 276fb623d4
2 changed files with 6 additions and 0 deletions

View File

@ -80,6 +80,7 @@ case "$(uname)" in
cp "$(cabal list-bin -v0 ${args[@]} exe:hls-wrapper)" "$CI_PROJECT_DIR/out/haskell-language-server-wrapper"$EXE_EXTENSION
;;
*)
sed -i.bak -e '/DELETE MARKER FOR CI/,/END DELETE/d' cabal.project # see comment in cabal.project
emake --version
emake GHCUP=ghcup hls
emake GHCUP=ghcup bindist

View File

@ -65,11 +65,16 @@ constraints:
-- This is benign and won't affect our ability to release to Hackage,
-- because we only depend on `ekg-json` when a non-default flag
-- is turned on.
-- DELETE MARKER FOR CI
-- centos7 has an old version of git which cabal doesn't
-- support. We delete these lines in gitlab ci to workaround
-- this issue, as this is not necessary to build our binaries.
source-repository-package
type:git
location: https://github.com/pepeiborra/ekg-json
tag: 7a0af7a8fd38045fd15fb13445bdcc7085325460
-- https://github.com/tibbe/ekg-json/pull/12
-- END DELETE
allow-newer:
-- ghc-9.4