-
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
oatpp: add version 1.3.0-latest #23696
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🤔 wondering why upstream chose this versioning scheme and did not bump the version! Now the |
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! The tag is creating some issues, let's think about how we can best tackle this. Probably changing the tag to 1.3.0.latest
should be enough
recipes/oatpp/all/conanfile.py
Outdated
@@ -49,6 +50,10 @@ def validate(self): | |||
if self.settings.compiler == "gcc" and Version(self.settings.compiler.version) < "5": | |||
raise ConanInvalidConfiguration("oatpp requires GCC >=5") | |||
|
|||
def build_requirements(self): | |||
if Version(self.version) >= "1.3.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.
This does not sadly work as you expect. Version("1.3.0-latest") < Version("1.3.0")
because of prerelease syntax :(
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.
@RubenRBS
Thanks!
I add _version
property to fix it.
@@ -59,6 +64,8 @@ def generate(self): | |||
if is_msvc(self) and Version(self.version) >= "1.3.0": | |||
tc.variables["OATPP_MSVC_LINK_STATIC_RUNTIME"] = is_msvc_static_runtime(self) | |||
tc.generate() | |||
venv = VirtualBuildEnv(self) |
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.
We also probably want to set OATPP_LINK_TEST_LIBRARY
to false in the CMakeToolchain
here
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.
@RubenRBS
Thanks a lot!
I add with_test_library
option and use it's value for OATPP_LINK_TEST_LIBRARY
.
This comment has been minimized.
This comment has been minimized.
Hooks produced the following warnings for commit 05ce03boatpp/1.3.0-latest@#fb75cf3cef49ca7de53b98077672f399
oatpp/1.3.0@#1977cebedac494f91f44f0f112c3bde4
oatpp/1.2.5@#0ef2fc2eaac97c4d7d66879c2e37e4ea
oatpp/1.2.0@#33ed5d1154cc2087ede6a635a09d8f8f
oatpp/1.1.0@#af84ccf6805f8795d54c59ee06b877eb
oatpp/1.0.0@#a9778d66762d5c419d1bc8a8c49cdea8
|
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.
LGTM
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.
Modify version to make Version("1.3.0_latest") > Version("1.3.0")
Hello, can we make the last necessary changes to merge this PR ? I'd like to use this version via Conan, and I intend to create PRs for some of Oat++'s extensions too. I agree with you about the bad versioning scheme, not helping there. Another solution would be to create a recipe v1.3.1 that points to Oat++'s What do you think ? |
The thing is that, given the conan >>> from conan.tools.scm import Version
>>> Version("1.3.0-latest") > Version("1.3.1")
False
>>> Version("1.3.0-latest") > Version("1.3.0")
False
>>> Version("1.3.0-latest") < Version("1.3.0")
True
>>> Version("1.3.0_latest") > Version("1.3.1")
False
>>> Version("1.3.0_latest") > Version("1.3.0")
True If we use |
That's why I'm proposing to use neither
Both these solutions would use the |
Co-authored-by: PerseoGI <perseog@jfrog.com>
Co-authored-by: PerseoGI <perseog@jfrog.com>
Co-authored-by: PerseoGI <perseog@jfrog.com>
This comment has been minimized.
This comment has been minimized.
Conan v1 pipeline ✔️Warning Conan Center will stop receiving updates for Conan 1.x packages soon - please see announcement. All green in build 9 (
Conan v2 pipeline ✔️
All green in build 8 (
|
Specify library name and version: oatpp/1.3.0-latest
oatpp/oatpp@1.3.0...1.3.0-latest