-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[json-schema-validator] Conan v2 support #13959
Conversation
garethsb
commented
Nov 2, 2022
•
edited
Loading
edited
- Conan v2 support
- Bump nlohmann_json/3.11.2
This comment has been minimized.
This comment has been minimized.
Hooks produced the following warnings for commit 1976f71json-schema-validator/2.1.0
json-schema-validator/2.0.0
|
The CI linter in not happy. This recipe is outdated and requires more update. Could you please update it? We can help you. Please, take a look on the annotations on https://github.com/conan-io/conan-center-index/pull/13959/files. Also, https://github.com/conan-io/conan-center-index/blob/master/docs/v2_linter.md is a good guide. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@uilianries I added the patches to fix the |
This comment has been minimized.
This comment has been minimized.
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.
Looking good, need some adjusts
@garethsb It's not mandatory, but very welcome. Patches need to be described to help other users to understand their nature. More info: https://github.com/conan-io/conan-center-index/blob/master/docs/conandata_yml_format.md#patches-fields |
@uilianries That's the docs I was looking for, thanks! I forget sometimes it's conan docs I want and sometimes CCI docs... |
Co-authored-by: Uilian Ries <uilianries@gmail.com>
Everything is there, sometimes is hard to find or because the search engine is naive or because is more hidden than it should. In case you find some difficult to find anything there, please, open an issue to docs. For me and other devs, we used to read that everyday so we forget how hard can be finding some useful information there. |
This comment has been minimized.
This comment has been minimized.
Hooks produced the following warnings for commit 39c87aejson-schema-validator/2.1.0
json-schema-validator/2.0.0
|
This comment has been minimized.
This comment has been minimized.
Hooks produced the following warnings for commit 11c99e0json-schema-validator/2.1.0
json-schema-validator/2.0.0
|
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.
LGTM
@uilianries Do we need to upgrade the |
This comment has been minimized.
This comment has been minimized.
Yes,, please. |
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.
LGTM
|
||
def package_info(self): | ||
self.cpp_info.set_property("cmake_file_name", "nlohmann_json_schema_validator") | ||
self.cpp_info.set_property("cmake_target_name", "nlohmann_json_schema_validator") | ||
self.cpp_info.libs = ["json-schema-validator" if tools.Version(self.version) < "2.1.0" else "nlohmann_json_schema_validator"] | ||
self.cpp_info.set_property("cmake_target_name", "nlohmann_json_schema_validator::nlohmann_json_schema_validator") |
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.
it's a regression, target name was correct and aligned with upstream imported target.
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.
Thanks for noticing.