-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Use ghc-musl 9.6.2 docker image #8701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Resolved: jacobstanley/unix-compat#61 |
|
ℹ️ Waiting for a new version (0.19.2?) to be released: https://hackage.haskell.org/package/servant |
– haskell-servant/servant#1659 (comment) @jgm Did I miss a specific flag? I took the ones according to the Makefile and added |
See |
@jgm Then, git clone https://github.com/jgm/pandoc.git cd pandoc nano cabal.project diff --git a/cabal.project b/cabal.project
index d5afefaa6..cd1e26e95 100644
--- a/cabal.project
+++ b/cabal.project
@@ -1,3 +1,8 @@
+source-repository-package
+ type: git
+ location: https://github.com/haskell-servant/servant.git
+ subdir: servant-server
+ servant
packages: .
pandoc-lua-engine
pandoc-server nano linux/make_artifacts.sh diff --git a/linux/make_artifacts.sh b/linux/make_artifacts.sh
index 6d3c48954..6b025d9dc 100644
--- a/linux/make_artifacts.sh
+++ b/linux/make_artifacts.sh
@@ -1,6 +1,7 @@
#!/bin/bash
set -e
+cabal update
cabal build $CABALOPTS --ghc-options="$GHCOPTS" pandoc-cli
BINPATH=$(cabal list-bin $CABALOPTS --ghc-options="$GHCOPTS" pandoc-cli)
echo "Built executable: $BINPATH" nano pandoc-server/pandoc-server.cabal diff --git a/pandoc-server/pandoc-server.cabal b/pandoc-server/pandoc-server.cabal
index 66ecf0624..6472825ba 100644
--- a/pandoc-server/pandoc-server.cabal
+++ b/pandoc-server/pandoc-server.cabal
@@ -59,7 +59,7 @@ library
data-default >= 0.4 && < 0.8,
text >= 1.1.1.0 && < 2.1,
unicode-collation >= 0.1.1 && < 0.2,
- servant-server >= 0.19 && < 0.20,
+ servant-server,
skylighting >= 0.13 && < 0.14,
wai >= 3.2 && < 3.3,
wai-cors >= 0.2.7 && < 0.3 export DOCKERIMAGE=glcr.b-data.ch/ghc/ghc-musl:9.6.1
export GHCOPTS="-j4 +RTS -A256m -RTS -split-sections -optc-Os -optl=-pthread"
export CABALOPTS="--allow-newer -f-export-dynamic -fembed_data_files -fserver -flua --enable-executable-static -j4"
export REVISION=1 docker run --rm -v $PWD:/mnt -v $PWD/linux/artifacts:/artifacts -e REVISION -e CABALOPTS -e GHCOPTS -w /mnt --userns host --memory=0 $DOCKERIMAGE bash /mnt/linux/make_artifacts.sh 2>&1 > docker.log Build log: docker.log |
Great! Let's wait for it to work with released packages before merging. |
Some more output from the
Cross references: |
The compiler has probably gotten smarter about detecting redundancies... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably want to change l. 55 of .cirrus.yml as well.
|
|
@jgm Pandoc builds with GHC v9.6.2, too. ℹ️ Tested for both |
excellent! |
Some issues need to be resolved first.