Skip to content
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

Can't build master with cabal #1663

Closed
sgillespie opened this issue Mar 28, 2024 · 0 comments · Fixed by #1667 or #1670
Closed

Can't build master with cabal #1663

sgillespie opened this issue Mar 28, 2024 · 0 comments · Fixed by #1667 or #1670
Assignees
Labels
bug Something isn't working

Comments

@sgillespie
Copy link
Contributor

OS
Your OS: NixOS & ubuntu-latest

Versions
The db-sync version (eg cardano-db-sync --version): master

Build/Install Method
The method you use to build or install cardano-db-sync: cabal

Run method
The method you used to run cardano-db-sync (eg Nix/Docker/systemd/none): none

*Problem Report
Something seems to have happened recently that prevents cabal from resolving dependencies, even though the same commit previously built:

Revision (input-output-hk/devx): 6049c0f071a467ec623fbda5940d25c915a2ac88.
CABAL_DIR set to /home/runner/.cabal-devx
HEAD is now at 4bb2048db Merge pull request #5648 from IntersectMBO/zliu41/880pre
HEAD is now at 0e95dbb Make it build with ghc-9.6
Resolving dependencies...
Error: cabal: Could not resolve dependencies:
[__0] trying: cardano-chain-gen-13.2.0.1 (user goal)
[__1] trying: typed-protocols-0.1.1.0 (dependency of cardano-chain-gen)
[__2] next goal: io-classes (dependency of typed-protocols)
[__2] rejecting: io-classes-1.4.0.0 (conflict: typed-protocols =>
io-classes>=1.0 && <1.4)
[__2] trying: io-classes-1.3.1.0
[__3] trying: time-1.9.3/installed-1.9.3 (dependency of io-classes)
[__4] trying: text-1.2.4.1/installed-1.2.4.1 (dependency of cardano-chain-gen)
[__5] trying: plutus-core-1.21.0.0 (dependency of cardano-chain-gen)
[__6] trying: brick-2.3.1 (dependency of plutus-core)
[__7] trying: config-ini-0.2.7.0 (dependency of brick)
[__8] trying: primitive-0.9.0.0 (dependency of plutus-core)
[__9] next goal: megaparsec (dependency of plutus-core)
[__9] rejecting: megaparsec-9.6.1, megaparsec-9.6.0, megaparsec-9.5.0
(conflict: time => base==4.14.3.0/installed-4.14.3.0, megaparsec => base>=4.15
&& <5)
[__9] rejecting: megaparsec-9.4.1, megaparsec-9.3.1, megaparsec-9.3.0,
megaparsec-9.2.2 (conflict: time => base==4.14.3.0/installed-4.14.3.0,
megaparsec => base>=4.15 && <5.0)
[__9] trying: megaparsec-9.2.1
[_10] trying: scientific-0.3.7.0 (dependency of megaparsec)
[_11] trying: hedgehog-1.4 (dependency of plutus-core)
[_12] next goal: concurrent-output (dependency of hedgehog)
[_12] rejecting: concurrent-output-1.10.20, concurrent-output-1.10.19
(constraint from project config
/home/runner/work/cardano-db-sync/cardano-db-sync/cabal.project requires
<1.10.19)
[_12] trying: concurrent-output-1.10.18
[_13] next goal: ouroboros-consensus-diffusion (dependency of
cardano-chain-gen)
[_13] rejecting: ouroboros-consensus-diffusion-0.10.0.0 (conflict:
text==1.2.4.1/installed-1.2.4.1, ouroboros-consensus-diffusion =>
text>=1.2.5.0 && <2.2)
[_13] skipping: ouroboros-consensus-diffusion-0.9.0.0,
ouroboros-consensus-diffusion-0.8.0.2, ouroboros-consensus-diffusion-0.8.0.1,
ouroboros-consensus-diffusion-0.8.0.0, ouroboros-consensus-diffusion-0.7.1.1,
ouroboros-consensus-diffusion-0.7.0.0 (has the same characteristics that
caused the previous version to fail: excludes 'text' version 1.2.4.1)
[_13] rejecting: ouroboros-consensus-diffusion-0.6.1.0 (conflict:
io-classes==1.3.1.0, ouroboros-consensus-diffusion => io-classes^>=1.1)
[_13] skipping: ouroboros-consensus-diffusion-0.6.0.0,
ouroboros-consensus-diffusion-0.5.1.0, ouroboros-consensus-diffusion-0.5.0.0,
ouroboros-consensus-diffusion-0.4.0.0, ouroboros-consensus-diffusion-0.3.0.0,
ouroboros-consensus-diffusion-0.2.1.0, ouroboros-consensus-diffusion-0.2.0.0
(has the same characteristics that caused the previous version to fail:
excludes 'io-classes' version 1.3.1.0)
[_13] fail (backjumping, conflict set: cardano-chain-gen, io-classes,
ouroboros-consensus-diffusion, text)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: postgresql-simple, aeson, base,
postgresql-libpq, text, time, postgresql-libpq:use-pkg-config, scientific,
cardano-db, cardano-chain-gen, megaparsec, io-classes, primitive, plutus-core,
brick, config-ini, concurrent-output, hedgehog, ouroboros-consensus-diffusion,
typed-protocols
Try running with --minimize-conflict-set to improve the error message.

Here are some CI failures:

https://github.com/IntersectMBO/cardano-db-sync/actions/runs/8376801466/job/23210442093

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment