feat: Install validator-keys - #5841
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5841 +/- ##
=========================================
- Coverage 79.2% 79.2% -0.0%
=========================================
Files 816 816
Lines 72425 72425
Branches 8365 8366 +1
=========================================
- Hits 57376 57368 -8
- Misses 15049 15057 +8 🚀 New features to boost your workflow:
|
ximinez
left a comment
There was a problem hiding this comment.
Approved, but for reference and confirmation, could you post the build instructions necessary to build validator-keys from within rippled?
I think it's just
cmake [...] -Dvalidator-keys=ON ${dir}
cmake --build ${dir} --target validator-keys
${dir}/_deps/validator_keys-build/validator-keys --unittest
But confirmation would be nice.
Very close. The option is cmake -B ${BUILD_DIR} -Dvalidator_keys=ON
cmake --build ${BUILD_DIR} --target validator-keys
./${BUILD_DIR}/validator-keys --unittest |
a1q123456
left a comment
There was a problem hiding this comment.
LGTM but it would be nicer if we could avoid DESTDIR and use CMAKE_INSTALL_PREFIX to make it more conventional but it's not directly relating to this PR.
Wouldn't it be better to add EXCLUDE_FROM_ALL to |
By default, the |
* feat: Install validator-keys * output validator-keys with everything else
High Level Overview of Change
Add the validator-keys as a CMake install target when it is requested to be built.
Context of Change
Sometimes people ask where this is. Maybe this can make it a little easier to locate. The CMake needed to be updated also and this removes the need for manually installing into packages.
Type of Change
Warning during CMake configure.
Before
After
No warning.
Fix
DESTDIRnot being respected.Before
CMake error on install.
After
No errors. Links created.
No
validator-keysin installation.Before
validator-keysnot installed.After
The
validator-keystool is installed withrippled.% find . -type f -name validator-keys ./rippled_install/usr/local/bin/validator-keys ./build/_deps/validator_keys-build/validator-keys