sjshuck / hs-pcre2

Complete Haskell binding to PCRE2
Apache License 2.0
12 stars 2 forks source link

Cabal builds failing #25

Closed sjshuck closed 2 years ago

sjshuck commented 2 years ago

In text-2 branch, the Cabal CI actions fail with

cabal.exe: Cannot test the package pcre2-2.2.0 because none of the components
are available to build: the test suite 'pcre2-test' is not available because
the solver did not find a plan that included the test suites. Force the solver
to enable this for all packages by adding the line 'tests: True' to the
'cabal.project.local' file.
sjshuck commented 2 years ago

I suspect the cause is temporary pinning of versions in stack.yaml and package.yaml. When text 2.0 hits Stackage LTS probably this summer, those pinnings can go away. But naturally I'd like to release 2.2.0 before then to get it in that Stackage cycle.

EDIT: Pinning text >=2 in package.yaml should not go away.

tchoutri commented 2 years ago

@sjshuck I've started a cabal build on the text-2 branch and I am getting this:

<command line>: does not exist: src/c/pcre2/src/pcre2_auto_possess.c   

How can I fix this?

sjshuck commented 2 years ago

Be sure to clone submodules in addition to the hs-pcre2 repo.

sjshuck commented 2 years ago

Fixed by https://github.com/sjshuck/hs-pcre2/commit/4c063adc152a1426619f95f11a32f2afd9596e3f.