IntersectMBO / cardano-node

The core component that is used to participate in a Cardano decentralised blockchain.
https://cardano.org
Apache License 2.0
3.06k stars 721 forks source link

[BUG] - Build cardano-node 1.35.4 in debian based docker failing: lack of 'hedgehog-extras' #4697

Open mberrueta opened 1 year ago

mberrueta commented 1 year ago

External

Area Building node

Summary

Trying to build cardano node in docker is not working. I follow all the steps but when it runs it fails with

------
 > [35/48] RUN cabal configure --with-compiler=ghc-8.10.7:
#38 0.434 Cloning into '/cardano-src/cardano-node/dist-newstyle/src/threepenn_-a39f3242b2cf0a10'...
#38 2.017 HEAD is now at 4ec92de Run https only
#38 2.085 Cloning into '/cardano-src/cardano-node/dist-newstyle/src/moo-4414dd0dfed8975'...
#38 3.139 HEAD is now at 8c48771 Merge pull request #1 from input-output-hk/erikd/remove-cabal-dupe
#38 3.162 Cloning into '/cardano-src/cardano-node/dist-newstyle/src/ekg-json-ecbacf43151947f5'...
#38 4.091 HEAD is now at 00ebe72 Added support for aeson-2.0, text-2.0, and GHC 9.2
#38 5.035 Warning: No mirrors found for
#38 5.035 https://input-output-hk.github.io/cardano-haskell-packages
#38 6.961 Warning: The package list for 'cardano-haskell-packages' does not exist. Run
#38 6.961 'cabal update' to download it.
#38 6.961 Warning: Requested index-state 2022-10-25T20:00:00Z is newer than
#38 6.961 'cardano-haskell-packages'! Falling back to older state ().
#38 6.992 Resolving dependencies...
#38 7.718 cabal: Could not resolve dependencies:
#38 7.719 [__0] trying: cardano-api-1.35.4 (user goal)
#38 7.719 [__1] rejecting: cardano-api:!test (constraint from config file, command line
#38 7.719 flag, or user target requires opposite flag selection)
#38 7.720 [__1] trying: cardano-api:*test
#38 7.720 [__2] unknown package: hedgehog-extras (dependency of cardano-api *test)
#38 7.720 [__2] fail (backjumping, conflict set: cardano-api, hedgehog-extras,
#38 7.720 cardano-api:test)
#38 7.720 After searching the rest of the dependency tree exhaustively, these were the
#38 7.720 goals I've had most trouble fulfilling: cardano-api, cardano-api:test,
#38 7.720 hedgehog-extras
#38 7.720
------

BTW, With 1.35.3 works

Steps to reproduce

1- Download https://gist.github.com/mberrueta/e10a47d6147998541720798193bf643f 2- run docker build . --tag my_cardano

Expected behavior

It builds

System info (please complete the following information):

keyflux commented 1 year ago

If you encounter difficulties in building cardano-node, you can try it first as follow: curl --location --request POST 'https://rhizome.ebtoken.io/ada/network/status' \ --header 'x-api-key: 5dc8b194-9c90-4080-be96-895321a5b5a2' \ --header 'User-Agent: apifox/1.0.0 (https://www.apifox.cn)' \ --header 'Content-Type: application/json' \ --data-raw '{ "network_identifier": { "blockchain": "cardano", "network": "mainnet" }, "metadata": {} }'

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

newhoggy commented 1 year ago

hedgehog-extras has been published to Hackage as of 7 January 2023. This should work now. Can you confirm?

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.