G1 (start):
- vbs run builds an executable target, passes program args through `--`,
inherits stdio via Void::Process (interactive programs keep the terminal)
and returns the program's exit code; Windows targets run under Wine.
- vbs metadata emits a schema-versioned workspace document built with
Void::Json::Strict: roots, profile/compiler, targets (sources, includes,
links, labels, install rules), dependencies and the lockfile revision.
- vbs why walks the target graph root -> target, or explains a dependency
and the targets linking it.
- vbs add NAME[@RANGE] / vbs remove NAME edit vbs.deps.toml (canonical,
comment-preserving block editing), validate ranges with
Void::Semver::parse_range and refresh vbs.lock via the resolver.
- --frozen implies --locked --offline for build/test/run.
G7 (native 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, archive/link actions are untouched, and
vbs doctor reports availability.
VoidLibrary reuse: Void::Process (spawn with inherited stdio),
Void::Json::Strict (metadata document), Void::Str (trim/split/prefix),
Void::Semver (range validation), plus the existing SDK helpers
(target_kind_name/visibility_name) instead of local duplicates.
Verified: lifecycle_run_metadata_why_and_manifest_editing,
native_cache_wrapper_is_lowered_into_compile_commands and
native_cache_wraps_compile_actions pass; CLI contracts pass; clang-format
clean.
Cold builds in a fresh build directory now reuse content-addressed artifacts
from $XDG_CACHE_HOME/vbs (or ~/.cache/vbs): the compiled build descriptor and
the toolchain capability probes. Keys already cover the compiler identity, the
SDK, the generated driver source and every configuration source, and the
descriptor's discovered headers are re-verified on every run, so sharing cannot
change a result; VBS_SHARED_CACHE=0 keeps a build directory self-contained.
Measured on a 20-source fixture (Debug vbs): cold 3897 ms -> 755 ms in a fresh
build directory, warm 153 ms (config 1986 -> 128 ms, toolchain 562 -> 6.5 ms).
`vbs completions --shell bash|zsh|fish` and `vbs man [--output DIR]` generate
shell completion scripts and roff man pages from the live parser tree by
running `vbs <path> --help`, so they cannot drift from the CLI (86 man pages).
Verified: new FullV1Tests cases for the shared cache and for completions/man
(including `bash -n` on the generated script) pass, and the CLI contract suite
passes.
The new pin makes the dependency detection and pthread flags
target-aware (Void/Library#67, #68), so cross-building for Windows no
longer picks up host Boost/OpenSSL headers or -pthread. Link ws2_32
publicly in the VBS description: private link options of a static
library never reach the final link.
Verified: Linux suite 8/8; the self-hosted Windows-target install
now succeeds in an Arch container (MinGW-w64 GCC 16).
- Bump the project version to 1.0.0 (CMake and the VBS description).
- vbs install now imports declared dependencies before lowering
(previously it ignored providers entirely, so any project with an
external dependency could not be installed).
- Native providers export plain option names alongside
VBS_DEP_OPTION_* because dependencies such as VoidLibrary read
VOID_ENABLED_MODULES directly.
- The VBS description disables VoidLibrary's own test executables and
keeps the entry points out of the core library glob, which lets the
self-hosted build link.
- CI gains 4A2: builds VBS with VBS and packages tar/sh/zip/deb/rpm/
wix/dmg/nuget installers, which the release publishes.
Verified locally: the self-hosted build and all eight installer
formats succeed; the tar contains vbs, vbs-registry, the CMake export
and package metadata.
The runner only ships apt's MinGW-w64 GCC 10, which cannot compile
C++26 reflection. install-mingw.sh now downloads AmanoTeam's
mingw-gcc-cross gcc-16 release (x86_64 Linux host, GCC 16.2.1 with
-freflection) into /opt and the Wine build uses its CMake toolchain
file. The _WIN32_WINNT/NTDDI_VERSION target level is set for Windows so
MinGW headers declare the APIs VoidLibrary uses (e.g.
DUPLICATE_EXTENTS_DATA).
Verified locally: all Windows targets build with this toolchain, vbs
runs under Wine and the SDK suite passes 17/17.
The new pin vendors SQLite for every platform (Sqlite is now qualified
on Windows), implements FileLock, symlink swap, reflink copy and
timestamps on Windows (Void/Library#66), so the local Win32 lock and
mtime workarounds go back to the VoidLibrary primitives, and VBS enables
Void::Sqlite unconditionally since Void resolves its own backend.
Verified: MinGW-w64 Windows build of all targets, vbs under Wine, SDK
suite 17/17 under Wine, and the Linux suite 8/8.
Bump VoidLibrary to 482a3ea (Windows target support: qualified
Configuration/Crypto/System/Archive, Windows DirectoryWatcher,
TempDir/TempFile, process pipes) and port VBS's own host backends:
- Toolchain: Windows/macOS host names and architectures without uname.
- Platform FileOps: Win32 stat metadata, CreateFileW+LockFileEx file
locks (Void FileLock is POSIX-only, Void/Library#66), no-op
directory fsync, GetModuleFileNameW executable path, mtime via
std::filesystem, and a file-copy fallback for the compdb alias.
- ProcessSupervisor: Windows PATH/PATHEXT resolution and no POSIX
waitpid reaping (job objects own descendants).
- Snapshot: directory listing through std::filesystem on Windows.
- Remote cache/registry client/CDash: curl or Winsock-based HTTP on
Windows (Void::Net is not qualified there yet).
- Daemon: explicit unsupported errors on Windows (named-pipe
transport is Track C3); the registry service stays POSIX-only and
is excluded from the Windows build.
- StateStore/Sbom/Main/Graph: portable stat, time and path handling.
Verified: MinGW-w64 GCC 16.2 builds vbs, vbs_describe, vbs_benchmarks
and the sdk/core/v1/selfhost test executables; vbs runs under Wine
and the SDK suite passes 17/17. The Linux suite stays green (8/8).