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

+3
View File
@@ -405,6 +405,9 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
- `vbs run` builds and executes an executable target with program arguments and passes the exit code through; it uses Void::Process with inherited stdio so interactive programs keep the terminal, and runs Windows targets under Wine.
- `vbs metadata` emits a schema-versioned workspace document (roots, profile, compiler, targets with sources/includes/links/labels/install rules, dependencies, lockfile revision) built with `Void::Json::Strict` instead of hand-written JSON.
- `vbs why NAME` explains a target's dependents (root -> target paths) or a dependency's declaring record and linked targets.
- `vbs tree [--duplicates]` prints the resolved lock contexts and flags packages resolved to multiple versions.
- `vbs fmt [--check] [--changed-only] [FILES...]` formats or verifies owned sources with clang-format; `vbs lint [--fix] [--warnings-as-errors] [FILES...]` runs clang-tidy against the build's compile database. Both resolve explicit paths against the project root and skip build/VCS/vendor directories.
- `vbs install-binary NAME [--version V] [--variant ID] [--prefix DIR] [--list]` resolves the newest release when no version is given (Void::Semver ordering), picks the host os/arch variant by default, verifies signatures when trusted keys are configured, downloads with SHA-256 verification and installs into `<prefix>/bin`.
- `vbs add NAME[@RANGE]` and `vbs remove NAME` edit `vbs.deps.toml` (canonical, comment-preserving block append/removal), validate version ranges through `Void::Semver::parse_range`, and refresh `vbs.lock` through the existing resolver (`--no-lock` skips it).
- `--frozen` on `build`/`test`/`run` implies `--locked --offline`.
- **Native compiler caching**: `--native-cache off|auto|ccache|sccache` (or `VBS_NATIVE_CACHE`) prepends ccache/sccache to compile actions only; the wrapper and real compiler are part of the action key, archives/links are untouched, and `vbs doctor` reports availability. Verified deterministically by `FullV1Tests.native_cache_wrapper_is_lowered_into_compile_commands` and end to end when the tool is installed (`native_cache_wraps_compile_actions`).