Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Commit 155b77d

Browse files
authored
Fix build (#2281)
* remove ghc-9.7 from build matrix * update pact pins * get rid of some warnings * fix node/Setup.hs for new versions of Cabal * fix build for recent bytesmith * fix build of ea * update freeze file * update docker images builds * disable devnet db validation in CI
1 parent 6fe7d22 commit 155b77d

File tree

8 files changed

+98
-100
lines changed

8 files changed

+98
-100
lines changed

.github/workflows/applications.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,14 @@ jobs:
135135
MATRIX="$(jq -c '.' <<EOF
136136
{
137137
138-
"ghc": ["9.6.7", "9.8.2", "9.10.1"],
138+
"ghc": ["9.8.2", "9.10.2"],
139139
"cabal": ["latest"],
140140
"os": ["ubuntu-22.04"],
141141
"use-freeze-file": ["false"],
142142
"include" : [
143143
{
144144
# These are the build values that will be used for release scripts
145-
"ghc": "9.8.2",
145+
"ghc": "9.10.2",
146146
"cabal": "latest",
147147
"os": "ubuntu-22.04",
148148
"use-freeze-file": "true"
@@ -154,14 +154,14 @@ jobs:
154154
else
155155
MATRIX="$(jq -c '.' <<EOF
156156
{
157-
"ghc": ["9.6.7", "9.8.2", "9.10.1"],
157+
"ghc": ["9.8.2", "9.10.2"],
158158
"cabal": ["latest"],
159159
"os": ["ubuntu-22.04"],
160160
"use-freeze-file": ["false"],
161161
"include" : [
162162
{
163-
"ghc": "9.8.2",
164-
"cabal": "3.12",
163+
"ghc": "9.10.2",
164+
"cabal": "3.14",
165165
"os": "ubuntu-22.04",
166166
"use-freeze-file": "true"
167167
}
@@ -589,6 +589,7 @@ jobs:
589589
# Validate Devnet Database and Replay Pact History
590590

591591
validate-devnet-database:
592+
if: false # disabled because development db artifact is missing
592593
name: Validate Devnet Database Snapshot and Replay Pact History
593594
needs: [config, sync-chain-db, build]
594595
strategy:
@@ -763,10 +764,10 @@ jobs:
763764
# when adding more than one build, use a different package name or
764765
# different tags
765766
include:
766-
- ghc: "9.8.2"
767+
- ghc: "9.10.2"
767768
os: "ubuntu-22.04"
768769
use-freeze-file: "true"
769-
- ghc: "9.10.1"
770+
- ghc: "9.10.2"
770771
os: "ubuntu-22.04"
771772
use-freeze-file: "false"
772773
env:

cabal.project

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ package yet-another-logger
9595
source-repository-package
9696
type: git
9797
location: https://github.com/kadena-io/pact.git
98-
tag: d4f03045df6ba5178a76e534d619b6233ad1c659
99-
--sha256: 1q4b3i606davn6iyk6az2q7cw5f7llxjhkbqyzw4bsxhrkah7fch
98+
tag: 4208012e3f2fdf1721c24cdcb97de5f64fd5f58a
99+
--sha256: 1al11csqr291avfwbb7hcrfxapz9sx0iclv3j5ipnli287h52cvs
100100

101101
source-repository-package
102102
type: git
103103
location: https://github.com/kadena-io/pact-5.git
104-
tag: 6c81f4cf0631a4087f8350230bd9b7c3714f9751
105-
--sha256: sha256-7SttW6Aexh+sQLdT1JZ4sZIhRXJ5G4q23aBvRh0sEK0=
104+
tag: bfc5310c462aaefabe7c512407ac6dab87fc8c42
105+
--sha256: 05xp1vwxkvjxrn8pij9z4g1hadbkb8hrgziwzs408yxxxmkcv6kq
106106

107107
source-repository-package
108108
type: git

cabal.project.freeze

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
active-repositories: hackage.haskell.org:merge
2-
constraints: any.Cabal ==3.10.2.0,
3-
any.Cabal-syntax ==3.10.2.0,
2+
constraints: any.Cabal ==3.12.1.0 || ==3.14.2.0,
3+
any.Cabal-syntax ==3.12.1.0 || ==3.14.2.0,
44
any.Decimal ==0.5.2,
55
any.Diff ==1.0.2,
66
any.Glob ==0.10.2,
@@ -27,7 +27,7 @@ constraints: any.Cabal ==3.10.2.0,
2727
any.ap-normalize ==0.1.0.1,
2828
ap-normalize -test-with-clang,
2929
any.appar ==0.1.8,
30-
any.array ==0.5.6.0,
30+
any.array ==0.5.8.0,
3131
any.asn1-encoding ==0.9.6,
3232
any.asn1-parse ==0.9.5,
3333
any.asn1-types ==0.3.4,
@@ -43,7 +43,7 @@ constraints: any.Cabal ==3.10.2.0,
4343
any.authenticate-oauth ==1.7,
4444
any.auto-update ==0.2.6,
4545
any.barbies ==2.1.1.0,
46-
any.base ==4.19.1.0,
46+
any.base ==4.20.1.0,
4747
any.base-compat ==0.14.1,
4848
any.base-compat-batteries ==0.14.1,
4949
any.base-orphans ==0.9.3,
@@ -55,7 +55,7 @@ constraints: any.Cabal ==3.10.2.0,
5555
any.basement ==0.0.16,
5656
any.bifunctors ==5.6.2,
5757
bifunctors +tagged,
58-
any.binary ==0.8.9.1,
58+
any.binary ==0.8.9.3,
5959
any.binary-orphans ==1.0.5,
6060
any.bitvec ==1.1.5.0,
6161
bitvec +simd,
@@ -67,17 +67,17 @@ constraints: any.Cabal ==3.10.2.0,
6767
any.bound ==2.0.7,
6868
bound +template-haskell,
6969
any.bsb-http-chunked ==0.0.0.4,
70-
any.bytebuild ==0.3.16.3,
70+
any.bytebuild ==0.3.17.0,
7171
bytebuild -checked,
7272
any.byteorder ==1.0.4,
7373
any.bytes ==0.17.4,
7474
any.byteslice ==0.2.15.0,
7575
byteslice +avoid-rawmemchr,
76-
any.bytesmith ==0.3.13.0,
77-
any.bytestring ==0.12.1.0,
76+
any.bytesmith ==0.3.14.0,
77+
any.bytestring ==0.12.2.0,
7878
any.bytestring-builder ==0.10.8.2.0,
7979
bytestring-builder +bytestring_has_builder,
80-
any.cabal-doctest ==1.0.11,
80+
any.cabal-doctest ==1.0.12,
8181
any.cache ==0.1.3.0,
8282
any.call-stack ==0.4.0,
8383
any.case-insensitive ==1.2.1.0,
@@ -90,8 +90,8 @@ constraints: any.Cabal ==3.10.2.0,
9090
chainweb-node -debug -ed25519 -ghc-flags,
9191
any.character-ps ==0.1,
9292
any.charset ==0.3.12,
93-
any.chronos ==1.1.6.2,
94-
any.citeproc ==0.10,
93+
any.chronos ==1.1.7.0,
94+
any.citeproc ==0.11,
9595
citeproc -executable -icu,
9696
any.clock ==0.8.4,
9797
clock -llvm,
@@ -111,7 +111,7 @@ constraints: any.Cabal ==3.10.2.0,
111111
any.configuration-tools ==0.7.1,
112112
configuration-tools -remote-configs,
113113
any.constraints ==0.14.2,
114-
any.containers ==0.6.8,
114+
any.containers ==0.7,
115115
any.contiguous ==0.6.4.2,
116116
any.contravariant ==1.5.5,
117117
contravariant +semigroups +statevar +tagged,
@@ -132,7 +132,7 @@ constraints: any.Cabal ==3.10.2.0,
132132
any.crypton-socks ==0.6.2,
133133
crypton-socks -example +network-3-0-0-0,
134134
any.crypton-x509 ==1.7.7,
135-
any.crypton-x509-store ==1.6.11,
135+
any.crypton-x509-store ==1.6.12,
136136
any.crypton-x509-system ==1.6.7,
137137
any.crypton-x509-validation ==1.6.14,
138138
any.cryptonite ==0.30,
@@ -155,7 +155,7 @@ constraints: any.Cabal ==3.10.2.0,
155155
any.digraph ==0.3.2,
156156
any.direct-sqlite ==2.3.29,
157157
direct-sqlite +dbstat +fulltextsearch +haveusleep +json1 -mathfunctions -systemlib +urifilenames,
158-
any.directory ==1.3.8.1,
158+
any.directory ==1.3.8.5,
159159
any.distributive ==0.6.2.1,
160160
distributive +semigroups +tagged,
161161
any.djot ==0.1.2.3,
@@ -174,11 +174,11 @@ constraints: any.Cabal ==3.10.2.0,
174174
any.errors ==2.3.0,
175175
any.ethereum ==0.1.1,
176176
ethereum -ethhash -openssl-use-pkg-config,
177-
any.exceptions ==0.10.7,
177+
any.exceptions ==0.10.9,
178178
any.extra ==1.8,
179179
any.fast-logger ==3.2.6,
180180
any.file-embed ==0.0.16.0,
181-
any.filepath ==1.4.200.1,
181+
any.filepath ==1.5.4.0,
182182
any.fingertree ==0.1.6.2,
183183
any.finite-typelits ==0.2.1.0,
184184
any.free ==5.2,
@@ -190,10 +190,11 @@ constraints: any.Cabal ==3.10.2.0,
190190
any.generically ==0.1.1,
191191
any.generics-sop ==0.5.1.4,
192192
any.ghc-bignum ==1.3,
193-
any.ghc-boot-th ==9.8.2,
193+
any.ghc-boot-th ==9.10.2,
194194
any.ghc-compact ==0.1.0.0,
195-
any.ghc-heap ==9.8.2,
196-
any.ghc-prim ==0.11.0,
195+
any.ghc-heap ==9.10.2,
196+
any.ghc-internal ==9.1002.0,
197+
any.ghc-prim ==0.12.0,
197198
any.gridtables ==0.1.1.0,
198199
any.groups ==0.5.3,
199200
any.growable-vector ==0.1,
@@ -255,7 +256,7 @@ constraints: any.Cabal ==3.10.2.0,
255256
lsp -demo,
256257
any.lsp-types ==2.3.0.1,
257258
lsp-types -force-ospath,
258-
any.managed ==1.0.10,
259+
any.managed ==1.0.11,
259260
any.massiv ==1.0.5.0,
260261
massiv -unsafe-checks,
261262
any.math-functions ==0.3.4.4,
@@ -294,19 +295,19 @@ constraints: any.Cabal ==3.10.2.0,
294295
any.optparse-applicative ==0.19.0.0,
295296
optparse-applicative +process,
296297
any.ordered-containers ==0.2.4,
297-
any.os-string ==2.0.8,
298+
any.os-string ==2.0.4,
298299
any.pact ==4.13.2,
299300
pact -build-tool +cryptonite-ed25519 -tests-in-lib,
300301
any.pact-json ==0.1.0.0,
301302
any.pact-time ==0.3.0.1,
302303
pact-time -with-time,
303304
any.pact-tng ==5.4,
304305
pact-tng +with-crypto +with-funcall-tracing +with-native-tracing,
305-
any.pandoc ==3.8.2,
306+
any.pandoc ==3.8.2.1,
306307
pandoc -embed_data_files,
307308
any.pandoc-types ==1.23.1,
308-
any.parallel ==3.2.2.0,
309-
any.parsec ==3.1.17.0,
309+
any.parallel ==3.3.0.0,
310+
any.parsec ==3.1.18.0,
310311
any.parser-combinators ==1.3.0,
311312
parser-combinators -dev,
312313
any.parsers ==0.12.12,
@@ -326,7 +327,7 @@ constraints: any.Cabal ==3.10.2.0,
326327
any.primitive-addr ==0.1.0.3,
327328
any.primitive-offset ==0.2.0.1,
328329
any.primitive-unlifted ==2.1.0.0,
329-
any.process ==1.6.18.0,
330+
any.process ==1.6.25.0,
330331
any.profunctors ==5.6.3,
331332
any.property-matchers ==0.7.0.0,
332333
any.psqueues ==0.2.8.2,
@@ -394,14 +395,14 @@ constraints: any.Cabal ==3.10.2.0,
394395
any.split ==0.2.5,
395396
any.splitmix ==0.1.3.1,
396397
splitmix -optimised-mixer,
397-
any.statistics ==0.16.3.0,
398+
any.statistics ==0.16.4.0,
398399
statistics -benchpapi,
399-
any.stm ==2.5.2.1,
400+
any.stm ==2.5.3.1,
400401
any.stm-chans ==3.0.0.9,
401402
any.stopwatch ==0.1.0.7,
402403
stopwatch -test_delay_upper_bound -test_threaded,
403404
any.streaming ==0.2.4.0,
404-
any.streaming-commons ==0.2.3.0,
405+
any.streaming-commons ==0.2.3.1,
405406
streaming-commons -use-bytestring-builder,
406407
any.strict ==0.5.1,
407408
any.strict-concurrency ==0.2.4.3,
@@ -417,14 +418,14 @@ constraints: any.Cabal ==3.10.2.0,
417418
any.tasty-hunit ==0.10.2,
418419
any.tasty-json ==0.1.0.0,
419420
any.tasty-quickcheck ==0.11.1,
420-
any.template-haskell ==2.21.0.0,
421+
any.template-haskell ==2.22.0.0,
421422
any.temporary ==1.3,
422423
any.terminal-progress-bar ==0.4.2,
423424
any.terminal-size ==0.3.4,
424-
any.terminfo ==0.4.1.6,
425+
any.terminfo ==0.4.1.7,
425426
any.texmath ==0.13.0.1,
426427
texmath -executable -server,
427-
any.text ==2.1.1,
428+
any.text ==2.1.2,
428429
any.text-conversions ==0.3.1.1,
429430
any.text-iso8601 ==0.1.1,
430431
any.text-rope ==0.3,
@@ -444,14 +445,14 @@ constraints: any.Cabal ==3.10.2.0,
444445
any.time-locale-compat ==0.1.1.5,
445446
time-locale-compat +old-locale,
446447
any.time-manager ==0.2.3,
447-
any.tls ==2.1.11,
448+
any.tls ==2.1.13,
448449
tls -devel,
449450
any.tls-session-manager ==0.0.8,
450451
any.token-bucket ==0.1.0.1,
451452
token-bucket +use-cbits,
452453
any.toml-parser ==2.0.1.2,
453454
any.torsor ==0.1.0.1,
454-
any.transformers ==0.6.1.0,
455+
any.transformers ==0.6.1.1,
455456
any.transformers-base ==0.4.6,
456457
transformers-base +orphaninstances,
457458
any.transformers-compat ==0.7.2,
@@ -464,12 +465,12 @@ constraints: any.Cabal ==3.10.2.0,
464465
any.typst-symbols ==0.1.8.1,
465466
any.unicode-collation ==0.1.3.6,
466467
unicode-collation -doctests -executable,
467-
any.unicode-data ==0.6.0,
468+
any.unicode-data ==0.8.0,
468469
unicode-data -dev-has-icu,
469470
any.unicode-transforms ==0.4.0.1,
470471
unicode-transforms -bench-show -dev -has-icu -has-llvm -use-gauge,
471472
any.uniplate ==1.6.13,
472-
any.unix ==2.8.4.0,
473+
any.unix ==2.8.6.0,
473474
any.unix-compat ==0.7.4.1,
474475
any.unix-time ==0.4.17,
475476
any.unlifted ==0.2.3.0,
@@ -524,4 +525,4 @@ constraints: any.Cabal ==3.10.2.0,
524525
zip-archive -executable,
525526
any.zlib ==0.7.1.1,
526527
zlib -bundled-c-zlib +non-blocking-ffi +pkg-config
527-
index-state: hackage.haskell.org 2025-10-14T15:51:50Z
528+
index-state: hackage.haskell.org 2025-11-19T16:40:09Z

cwtools/ea/Ea/Genesis.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module Ea.Genesis
6666
import Control.Lens
6767
import Control.Monad
6868

69-
import Data.Text
69+
import qualified Data.Text as T
7070
import Data.Word
7171

7272
import Chainweb.Graph
@@ -108,7 +108,7 @@ chainIdRangeTag (ChainIdRange l u)
108108
data Genesis = Genesis
109109
{ _version :: ChainwebVersion
110110
-- ^ chainweb version (e.g. Testnet04)
111-
, _tag :: Text
111+
, _tag :: T.Text
112112
-- ^ Module name tag
113113
, _txChainIds :: ChainIdRange
114114
-- ^ chain id

node/Setup.hs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
{-# LANGUAGE CPP #-}
99
{-# LANGUAGE LambdaCase #-}
1010
{-# LANGUAGE MultiWayIf #-}
11+
{-# LANGUAGE ViewPatterns #-}
1112
{-# LANGUAGE OverloadedStrings #-}
1213
{-# LANGUAGE ScopedTypeVariables #-}
1314

@@ -133,7 +134,7 @@ import System.Directory
133134
doesFileExist, getCurrentDirectory)
134135
import System.Environment (lookupEnv)
135136
import System.Exit (ExitCode(ExitSuccess))
136-
import System.FilePath (isDrive, takeDirectory, (</>))
137+
import System.FilePath (isDrive, takeDirectory)
137138

138139
-- | Include this function when your setup doesn't contain any
139140
-- extra functionality.
@@ -183,7 +184,7 @@ mkPkgInfoModulesPostConf hook args flags pkgDesc bInfo = do
183184

184185
updatePkgInfoModule :: PackageDescription -> LocalBuildInfo -> ComponentLocalBuildInfo -> IO ()
185186
updatePkgInfoModule pkgDesc bInfo clbInfo = do
186-
createDirectoryIfMissing True dirName
187+
createDirectoryIfMissing True $ interpretSymbolicPathCWD dirName
187188
moduleBytes <- pkgInfoModule moduleName cName pkgDesc bInfo
188189
updateFile fileName moduleBytes
189190

@@ -196,19 +197,19 @@ updatePkgInfoModule pkgDesc bInfo clbInfo = do
196197
cName = unUnqualComponentName <$> componentNameString (componentLocalName clbInfo)
197198

198199
moduleName = pkgInfoModuleName
199-
fileName = dirName ++ "/" ++ moduleName ++ ".hs"
200+
fileName = dirName </> unsafeMakeSymbolicPath moduleName <.> ".hs"
200201

201202
legacyModuleName = legacyPkgInfoModuleName cName
202-
legacyFileName = dirName ++ "/" ++ legacyModuleName ++ ".hs"
203+
legacyFileName = dirName </> unsafeMakeSymbolicPath legacyModuleName <.> ".hs"
203204

204205
-- -------------------------------------------------------------------------- --
205206
-- Generate PkgInfo Module
206207

207208
pkgInfoModuleName :: String
208209
pkgInfoModuleName = "PkgInfo"
209210

210-
updateFile :: FilePath -> B.ByteString -> IO ()
211-
updateFile fileName content = do
211+
updateFile :: SymbolicPath from to -> B.ByteString -> IO ()
212+
updateFile (interpretSymbolicPathCWD -> fileName) content = do
212213
x <- doesFileExist fileName
213214
if | not x -> update
214215
| otherwise -> do

0 commit comments

Comments
 (0)