Skip to content

Add --version support across VDF/HW CLIs#314

Merged
hoffmang9 merged 1 commit into
mainfrom
add-version-flags-v2
Feb 18, 2026
Merged

Add --version support across VDF/HW CLIs#314
hoffmang9 merged 1 commit into
mainfrom
add-version-flags-v2

Conversation

@hoffmang9

@hoffmang9 hoffmang9 commented Feb 18, 2026

Copy link
Copy Markdown
Member

Summary

  • Add --version handling to vdf_client, vdf_bench, hw_test, and hw_vdf_client so each binary can print its embedded version and exit.
  • Introduce shared src/version.hpp and wire CHIAVDF_VERSION into both Makefile and CMake builds with a git describe fallback to dev.
  • Propagate release tag versioning through unified CI so release builds embed the release tag in CLI binaries.

Test plan

  • Run make -f src/Makefile.vdf-client vdf_client vdf_bench hw_test hw_vdf_client
  • Verify src/vdf_client --version
  • Verify src/vdf_bench --version
  • Verify src/hw_test --version
  • Verify src/hw_vdf_client --version

Made with Cursor


Note

Low Risk
Mostly additive CLI/build metadata changes; low functional risk aside from minor argument-parsing/CI build-flag wiring.

Overview
Adds --version across vdf_client, vdf_bench, hw_test, and hw_vdf_client, using a shared version.hpp helper to print the embedded version and exit.

Introduces a build-time CHIAVDF_VERSION macro wired through both Makefile.vdf-client and CMakeLists.txt (defaulting to git describe or dev), and updates the vdf-client-hw GitHub Actions workflow to pin that version to the release tag for release builds (including Windows CMake builds).

Written by Cursor Bugbot for commit fd073b7. This will update automatically on new commits. Configure here.

Introduce a shared version printer for vdf and HW client/test binaries, and embed git-derived version metadata by default while allowing release workflows to pin the exact release tag.

Co-authored-by: Cursor <cursoragent@cursor.com>
@hoffmang9
hoffmang9 merged commit a49a500 into main Feb 18, 2026
162 of 168 checks passed
@hoffmang9
hoffmang9 deleted the add-version-flags-v2 branch February 18, 2026 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants