feat: tree, fmt, lint and install-binary (G1 continued)
VoidBuildSystem CI / 1 · Requirements (push) Successful in 4s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 2m6s
VoidBuildSystem CI / 2A · Linux build (coverage) (push) Successful in 2m19s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 3m19s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 1m51s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 4m18s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m40s
VoidBuildSystem CI / 3A · Linux test (coverage) (push) Failing after 35s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 19s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 17s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 52s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Failing after 5m50s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Failing after 6m55s
VoidBuildSystem CI / 4A2 · VBS installers (linux target) (push) Skipped
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Skipped
VoidBuildSystem CI / 5 · Release (push) Skipped

- vbs tree prints the resolved lock contexts (source kind, version,
  features, build-only) and reports packages resolved to multiple versions
  with --duplicates.
- vbs fmt formats or checks owned C/C++ sources with clang-format,
  supports explicit paths (resolved against --project), --changed-only via
  git, and skips build/VCS/vendor directories.
- vbs lint runs clang-tidy against the build's compile_commands.json with
  --fix and --warnings-as-errors, --changed-only included.
- vbs install-binary picks the newest release with Void::Semver ordering,
  selects the host os/arch variant by default, verifies signatures when
  trusted keys are configured, SHA-256-verifies the download and installs
  into <prefix>/bin.

Verified: tree_prints_lock_entries_and_reports_duplicates,
fmt_check_detects_unformatted_files_and_fixes_them and the CLI contract
suite pass; clang-format clean.
This commit is contained in:
faumaray committed 2026-12-06 19:26:22 +03:00
1 parent 76f1e2a48c
commit 55f93d5c1c
6 files changed
+591 -3

No files matched your search

+6
View File
@@ -52,6 +52,12 @@ check_process(0 "--frozen" "" build --help)
check_process(0 "--native-cache" "" build --help)
check_process(2 "" "unsupported --native-cache" build --native-cache bogus)
check_process(2 "" "invalid version range" add fmt@bad --no-lock)
check_process(0 "Usage: vbs fmt " "" fmt --help)
check_process(0 "Usage: vbs lint " "" lint --help)
check_process(0 "Usage: vbs tree " "" tree --help)
check_process(0 "Usage: vbs install-binary " "" install-binary --help)
check_process(2 "" "missing required argument" install-binary)
check_process(2 "" "--registry and a package name are required" install-binary foo)
check_process(2 "" "invalid --repeat mode" test --repeat bogus)
check_process(2 "" "invalid --repeat count" test --repeat until-pass:0)
check_process(2 "" "invalid --retry value" test --retry 99)