Move to get Haskell packages from CHaP
This moves the repository to use cardano-haskell-packages (CHaP) repository.
This is currently blocked by https://github.com/input-output-hk/io-sim/pull/37. CHaP had been pre-populated with the dependencies of the lastest release of cardano-node, but ouroboros-network has progressed in the meantime requiring a newer version of io-sim which is not in CHaP yet.
This is currently blocked by https://github.com/input-output-hk/io-sim/pull/37.
It doesn't have to be blocked: use a s-r-p for now, and then we can remove it once that is merged. We can still get this PR in before that.
Note that shell.nix is using cabalWrapped, which can and should go.
It doesn't have to be blocked: use a
s-r-pfor now, and then we can remove it once that is merged. We can still get this PR in before that.
ok, I will chase this up on Monday.
Now at least it builds. Left to do is to remove one srp at the time so see if we can improve on the situation.
I think we could merge this as is and then work from this point? any objections?
I think we could merge this as is and then work from this point? any objections?
I am just trying to see if the new io-sim packages help.
But perhaps you made a good point that it can be done in a separate PR
I am just trying to see if the new io-sim packages help.
I just tried that and they don't work with the version of typed-protocols being used :sweat_smile: So I think let's move on for now.
Ok, let's call this done. We will improve on it later.
We just got compatible typed-protocols published, I'm just trying to see if I can roll that into this also.
Worked locally, pushing it.
By reading the new text in CONTRIBUTING.md, will I understand everything I need to understand in order to review the rest of this PR? Thanks!
cc @andreabedini @michaelpj
@nfrisby if you read it and you don't understand, then I regard that as a deficiency in the text and please say so :) you might also need to read the CHaP readme, which is linked.
@coot is this good to go?
@michaelpj this is only about using CHaP, not releasing anything to it, right? The next version of packages from this repo needs to be released from the release/cardano-node.1.35.x branch not master.
this is only about using CHaP, not releasing anything to it, right? The next version of packages from this repo needs to be released from the
release/cardano-node.1.35.xbranch notmaster.
@coot correct, we are only replacing source-repository-packages with equivalent ones in CHaP.
Yes, this doesn't say anything about how you release your packages. It should help with releasing packages, in that if you have a "clean" cabal.project with CHaP, then you know that your released package will build downstream without any additional config. However, I'm not sure it's worth backporting these changes to the release branch just for that! We can do what we need to do for the 1.35 release and just take this forward on master.
bors r+
bors r+
Already running a review
I don't understand what bors is saying. The status say "merge conflict", but there isn't one, and I can't rerun it?
bors r-
Canceled.
bors r+
bors r-
bors r+
I rebased on master and now the windows CI is failing because it can't find the system libsecp256k1 in order to build secp256k1-haskell. I don't think anything in this PR should affect that, so I'm quite confused. Any ideas?
Thanks for the comments Nick!
I think I've addressed all the comments. Just trying to work out why the windows CI doesn't like me :thinking: