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

fix building issue with conan >2.0 #53

Merged
merged 7 commits into from
Mar 6, 2023
Merged

Conversation

matthieugouel
Copy link
Member

@matthieugouel matthieugouel commented Mar 6, 2023

Since Feb. 2023, a new major version of Conan is out (see https://blog.conan.io/2023/02/22/Conan-2.0.html).
It seems to break the building of Caracal due to changes in configuration file handling AFAIK.

Example of failing here :

#24 16.72   ERROR: Error while parsing [options] in conanfile.txt
#24 16.72   Options should be specified as 'pkg/*:option=value'
#24 16.75   CMake Error at cmake/conan.cmake:638 (message):
#24 16.75     Conan install failed='1'
#24 16.75   Call Stack (most recent call first):
#24 16.75     CMakeLists.txt:42 (conan_cmake_install)
#24 16.75 

This PR enforces the building with Conan <2.0.
LMK if something else needs to be done.

@matthieugouel matthieugouel requested a review from maxmouchet March 6, 2023 15:01
@maxmouchet
Copy link
Member

@maxmouchet
Copy link
Member

One more thing, can you set cachix-action version to 20 to fix Nix build?

https://github.com/dioptra-io/caracal/blob/main/.github/workflows/tests.yml#L20
cachix/cachix-action#144

@codecov
Copy link

codecov bot commented Mar 6, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.15 🎉

Comparison is base (18a50a3) 80.26% compared to head (e7b714c) 80.42%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #53      +/-   ##
==========================================
+ Coverage   80.26%   80.42%   +0.15%     
==========================================
  Files          25       25              
  Lines        1267     1267              
  Branches      758      758              
==========================================
+ Hits         1017     1019       +2     
  Misses        156      156              
+ Partials       94       92       -2     
Impacted Files Coverage Δ
src/rate_limiter.cpp 74.07% <0.00%> (+3.70%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@maxmouchet
Copy link
Member

Nvm, another action (cachix/install-nix-action@v20) must be used. I'll fix later.

@matthieugouel
Copy link
Member Author

I resolved the issue in the test.yml GH Action workflow for linux and macos but I'm not familiar with Nix, could you point me out where to make the modification ?

@matthieugouel
Copy link
Member Author

Nvm, another action (cachix/install-nix-action@v20) must be used. I'll fix later.

Ok, I'm gonna merge this one and create an issue for Nix build.
Thanks!

@matthieugouel
Copy link
Member Author

Oh I see you already fixed it, thanks!

@maxmouchet
Copy link
Member

Looks like macOS build is still broken though.

@matthieugouel
Copy link
Member Author

FIxed for MacOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants