-
Notifications
You must be signed in to change notification settings - Fork 3
feat: Update to hiredis 1.3 #485
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
Conversation
env: | ||
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }} | ||
OPENSSL_ROOT_DIR: ${{ steps.install-openssl.outputs.OPENSSL_ROOT_DIR }} | ||
Boost_DIR: 'C:\local\boost_1_87_0\lib64-msvc-14.3\cmake\Boost-1.87.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.
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.
On those platforms it is automatically discovered.
GIT_TAG ccad7ebaf99310957004661d1c5f82d2a33ebd10 | ||
GIT_SHALLOW TRUE | ||
SOURCE_DIR _deps/hiredis | ||
SOURCE_DIR ${CMAKE_BINARY_DIR}/_deps/hiredis |
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.
Bug: CMake Path Mismatch Causes Compilation Failures
The hiredis
SOURCE_DIR
was updated to use CMAKE_BINARY_DIR
, but the include_directories
path still references CMAKE_CURRENT_BINARY_DIR
. This creates a path mismatch for hiredis
headers when this CMake file is included from a subdirectory, potentially leading to compilation failures.
🤖 I have created a release *beep* *boop* --- <details><summary>launchdarkly-cpp-server-redis-source: 2.2.0</summary> ## [2.2.0](launchdarkly-cpp-server-redis-source-v2.1.20...launchdarkly-cpp-server-redis-source-v2.2.0) (2025-10-13) ### Features * Update to hiredis 1.3 ([#485](#485)) ([3315e6d](3315e6d)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Release libs/server-sdk-redis-source 2.2.0, including an update to hiredis 1.3. > > - **Release: `libs/server-sdk-redis-source` 2.2.0** > - Version bumps in `CMakeLists.txt`, `package.json`, and `.release-please-manifest.json`. > - **Feature**: Update dependency to hiredis 1.3 (`CHANGELOG.md`). > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit b9434f4. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
CMake removed support for projects targeting CMake 3.5, hiredis 1.3 moved to CMake 3.7. Both are less than our required version.
This also updates redis-plus-plus which is a C++ wrapper around hiredis.
Note
Upgrades Redis dependencies (hiredis 1.3, newer redis-plus-plus), switches to new redis++ include path, updates CI to Boost 1.87 using Boost_DIR, and suppresses AppleClang deprecated-builtin warnings.
cmake/redis-plus-plus.cmake
to hiredis1.3.0
and a newerredis-plus-plus
commit; adjustSOURCE_DIR
for hiredis.-Wno-deprecated-builtins
for Clang/AppleClang inCMakeLists.txt
.#include <redis++.h>
with#include <sw/redis++/redis++.h>
across Redis source/tests.Boost_DIR
; addBoost_DIR
env to composite CI and Windows release step.cmake-tests/README.md
now documentsBoost_DIR
instead ofBOOST_ROOT
.vendor/foxy/cmake/certify.cmake
to a newer commit.Written by Cursor Bugbot for commit 1b2488c. This will update automatically on new commits. Configure here.