-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
mongo-cxx-driver: use validate() for checking configuration #4057
mongo-cxx-driver: use validate() for checking configuration #4057
Conversation
if self.options.with_ssl and not bool(self.options["mongo-c-driver"].with_ssl): | ||
raise ConanInvalidConfiguration("mongo-cxx-driver with_ssl=True requires mongo-c-driver with a ssl implementation") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old code here, everything is from configure()
or build()
methods.
I followed the recommendation from here:
https://blog.conan.io/2020/12/14/New-conan-release-1-32.html
the validate()
method should take over all responsibility for raising ConanInvalidConfiguration
errors
|
An unexpected error happened and has been reported. Help is on its way! 🏇 |
Should the be a new hook? |
version = tools.Version(self.settings.compiler.version) | ||
if version < self._compilers_minimum_version[compiler]: | ||
raise ConanInvalidConfiguration( | ||
"{} requires a compiler that supports at least C++{}".format( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll have to read that blog post but I would have expected this in configure method
I would move You can also bump mongo-c-driver to 1.17.3 |
For now I created the issue https://github.com/conan-io/conan/issues/8278 |
Done. Also bumped boost. |
An unexpected error happened and has been reported. Help is on its way! 🏇 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very weak approval, I dont know this new method 🙊
Some configurations of 'mongo-cxx-driver/3.6.1' failed in build 3 (
|
Both errors are: |
Indeed:
You can open an issue in CCI. |
If it's somethin' weird an' it don't look good |
I detected other pull requests that are modifying mongo-cxx-driver/all recipe: This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there. |
8e05648
I decided to stick with the current version of mongo-c-driver, to merge this PR faster. |
🤞 CI passes... dang missing binaries |
Merged master, there was an important fix to this recipe. |
Let's hope and pray :) |
Some configurations of 'mongo-cxx-driver/3.6.1' failed in build 4 ( |
All green in build 5 (
|
@Croydon may I ask you to review again, please? |
Specify library name and version: mongo-cxx-driver/3.6.2
conan-center hook activated.