Is <https://github.com/pact-foundation/pact-cplusp...
# general
s
Is https://github.com/pact-foundation/pact-cplusplus still supported? I attempted to install per the README.md, but I'm apparently not downloading the conanfile.txt. conan remote list conancenter: https://center.conan.io [Verify SSL: True, Enabled: True] pact-foundation: https://pactfoundation.jfrog.io/artifactory/api/conan/pactfoundation-conan [Verify SSL: True, Enabled: True] conan install . --build missing ERROR: Conanfile not found at /home/harveys/pact/conanfile.txt
🤔 1
u
It should still work, but has not been updated in quite a while. The conan recipes are not hosted anywhere, so you will have to use the ones checked into the repository.
🙌 1
s
Ok, I pulled down the git repo and attempted to install the dependencies via the commands in the README.md. This is what I see from the conan install ../conanfile.txt --build missing: ERROR: Version conflict: cpprestsdk/2.10.15->boost/1.80.0, None->boost/1.72.0.
the conanfile.txt is as follows:
[requires] gtest/1.10.0 boost/1.72.0 cpprestsdk/2.10.15 pact_ffi/0.0.0@pact/beta nlohmann_json/3.7.3 [generators] cmake
u
Try updating boost to 1.80.0
s
ERROR: Version conflict: websocketpp/0.8.2->boost/1.81.0, None->boost/1.80.0.
u
Whack a dependency mole ...
lolsob 1
s
I hate to say this but it appears as cpprestsdk is the culprit (creates a dependency on websocketpp), I think the codebase is no longer usable. The cpprestsdk website states it's no longer supported (hasn't been updated in 3 years). As such, unless I'm missing something the only solution I can think of is to replace cpprestsdk with an alternative (i.e. libcurl?).
Is there an alternative to using pact with c++?
we're locked into that language for a variety of reasons.
u
If you have a way of invoking your C++ code, you could use another language that can call it. I.e., using FFI on the consumer side, and use the verifier CLI on the provider side
👍 1
You can also try using libcurl instead of cpprestsdk, it would be good to get some fresh eyes over that code base
😀 1