Repository navigation
feat: accept latest for --version - #599
Conversation
`latest` requests the newest major version in the static binaries range known at build time, so cpp-linter-action v3 can default to it instead of a hard-coded number.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #599 +/- ##
=======================================
Coverage 99.75% 99.75%
=======================================
Files 37 37
Lines 9614 9627 +13
=======================================
+ Hits 9590 9603 +13
Misses 24 24 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
2bndy5
left a comment
There was a problem hiding this comment.
We'll have to remember to cut a new release when the version range changes.
Summary
This is the version default you suggested on cpp-linter/cpp-linter-action#283.
--version latest(any case) requests the newest major in the static binaries range that this build knows about. Today that is^23. The value comes fromMAX_CLANG_TOOLS_VERSION, whichbuild.rsreads from the static binaries index at build time, so nothing is looked up at run time.RequestedVersion::LATESTandRequestedVersion::latest()are added in clang-tools-manager, andfrom_strmapslatestto that requirement before trying a version or a path.''(the platform's installed version), so local runs and pre-commit don't start downloading clang 23. cpp-linter-action v3 can setversion: latestas its input default.--versionhelp in cpp-linter and in theclang-toolsbinary mentionslatest.cli.mdis generated from the help, so it picks up the change.Tested:
validate_version_latest.cpp-linter -V lateston a machine with clang-format 18 says 18 doesn't match^23and installs 23.1.5.Summary by CodeRabbit
latestas a version selection option. It resolves to the newest major version available in cpp-linter’s static binaries, including its latest minor or patch release.latest, and paths to local installations.