-
Notifications
You must be signed in to change notification settings - Fork 1
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: download uthash and utarray from upstream #232
Conversation
Instead of maintaining our own fork of uthash and utarray, we can download the upstream version. This means we have less code to test, increasing code coverage. It also makes it easier to update to a newer version in the future. The only changes we had made to our version was to use src/util/allocs.h
Codecov Report
@@ Coverage Diff @@
## main #232 +/- ##
==========================================
- Coverage 45.56% 45.52% -0.04%
==========================================
Files 108 107 -1
Lines 14949 14940 -9
==========================================
- Hits 6811 6802 -9
Misses 8138 8138
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it 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.
I like the idea. However, there's one main theoretical disadvantage that is if the author of the utarray decide to delete the repo.
It's a bit too famous to delete :) The uthash library is even built-in to Ubuntu, see https://packages.ubuntu.com/jammy/uthash-dev ( Apparently there's even a |
Instead of maintaining our own fork of uthash and utarray, we can download the upstream version.
This means we have less code to test, increasing code coverage (or at least it would if they weren't C/header-only macro functions).
It also makes it easier to update to a newer version of uthash the future (for example, we are now using v2.1.0, but v2.3.0 is now out)
I had a quick look at the git history for utarray.h and uthash.h, and the only major thing that I could find is that utarray.h was modified to use src/util/allocs.h.