-
Notifications
You must be signed in to change notification settings - Fork 4
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
Build complete library #24
Build complete library #24
Conversation
7496b5b
to
193bfc8
Compare
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.
Some early comment/questions, but I think it's very good in general.
I'll look at it a bit more.
Move all the libvalkey source files and headers into their final location. * Source files and internal headers in in `src/` * Public headers in `include/valkey/` and `include/valkey/adapters`.
cd44982
to
b470de8
Compare
* Update Makefile and CMakeLists.txt to build both standalone and cluster code. * Update dict API to make the API non-static for cluster usage. * Minor changes to a few examples and tests/test.c to get everything compiling. * Use CMake pkg-config .in files in the Makefile Fixes valkey-io#22
b470de8
to
a0fcb70
Compare
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.
If we fix the following issue in this PR:
/home/runner/work/libvalkey/libvalkey/src/valkeycluster.c:40:10: fatal error: 'valkey/alloc.h' file not found
#include <valkey/alloc.h>
^~~~~~~~~~~~~~~~
by changing to #include "alloc.h"
we might already get some green CI jobs.
* Use __attribute__((unused)) for the cluster asyn attach static functions. This lets us continue to build with -Werror * Fix the tests target to include ssl objects if needed. * Tweak CI invocation of test.sh * Install valkey-server for tests. * Darwin doesn't have clock_nanosleep * Add a sanity check to test.sh
781507f
to
ce9f77b
Compare
Non-cluster tests are now passing on Ubuntu, CentOS and RockyLinux. The macOS failures are actually also happening in hiredis so we'll have to investigate what's going on there. I can probably also get a windows VM set up to try and get that building again, but I know nothing about windows. I think we can merge this and then start in on combining the unit tests? |
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! A good start.
This is an initial restructuring of the project to use an idiomatic linux shared object structure.