feat(doctor): report host platform and enabled Void backends
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 4s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 17s

This commit is contained in:
faumaray committed 2026-12-04 02:01:09 +03:00
1 parent 1c2f7d9a2c
commit 7fdda96553
6 files changed
+35 -2

No files matched your search

+16
View File
@@ -15,6 +15,7 @@
#include <Void/Build/Package/Solver.hpp>
#include <Void/Build/Package/Toml.hpp>
#include <Void/Build/Platform/FileOps.hpp>
#include <Void/Build/Platform/Host.hpp>
#include <Void/Build/Platform/ProcessSupervisor.hpp>
#include <Void/Build/Provenance/Sbom.hpp>
#include <Void/Build/Provenance/TrustedKeys.hpp>
@@ -1970,6 +1971,21 @@ int execute_clean_command(const CleanCmdOptions &opts) {
int execute_doctor_command() {
std::cout << "VoidBuildSystem " << Bootstrap::version << " (" << Bootstrap::os << "/"
<< Bootstrap::architecture << ")\n";
std::cout << " " << (Platform::host_supported() ? "[ok] " : "[opt] ")
<< " host platform: " << Platform::host_os_name(Platform::host_os())
<< (Platform::host_supported() ? " (native process/file backends)"
: " (POSIX backends; macOS/Windows ports are planned)")
<< '\n';
#if defined(VBS_HAS_VOID_SQLITE)
std::cout << " [ok] Void::Sqlite: enabled (transactional state store)\n";
#else
std::cout << " [opt] Void::Sqlite: disabled (journaled JSON state store)\n";
#endif
#if defined(VBS_HAS_VOID_NET)
std::cout << " [ok] Void::Net: enabled (TLS-capable HTTP transport)\n";
#else
std::cout << " [opt] Void::Net: disabled (POSIX/curl transport)\n";
#endif
auto check_tool = [](std::string_view label, const char *bin, bool required) {
auto found = Platform::resolve_executable(bin);
std::cout << " " << (found ? "[ok] " : (required ? "[FAIL]" : "[opt] ")) << " " << label