From f4e15aa32dca6f8effc70f0f9dd9897d61ed206a Mon Sep 17 00:00:00 2001 From: Daniel Samson Date: Sat, 17 Oct 2026 14:48:57 +0100 Subject: [PATCH] Drop Windows support: clear build error, docs updated Co-Authored-By: Claude Sonnet 5.5 --- AGENTS.md | 6 ++++++ README.md | 11 ++++++----- build.zig | 1 + src/root.zig | 5 +++++ 4 files changed, 18 insertions(+), 5 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index febdc35..6a4dd56 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -58,6 +58,12 @@ Guidance for AI coding agents working in `zag`, the Zig port of the | `test/e2e.sh` | End-to-end smoke test (`zig build e2e`) | | `src/servicemgr.zig` | systemd unit / launchd plist generation, install detection, manager commands | +## Platforms + +Linux and macOS only. Windows support was dropped on purpose, and building for a Windows target +fails with a clear compile error (`src/root.zig`). A few `builtin.os.tag == .windows` branches remain in +the code from the port; new code does not need to handle Windows. + ## Build notes - Branches: `main` is the default (same as the other submodules; the mono repo's `make update` pulls `origin main`); `develop` is the working branch. Merge `develop` into `main` to publish docs and `install.sh`. diff --git a/README.md b/README.md index f9ba315..e75059d 100644 --- a/README.md +++ b/README.md @@ -6,16 +6,17 @@ > name, and fixes the places where barn's behaviour did not match its documentation (see > [Migration from barn](#migration-from-barn)). -A **cross-platform service** for managing long-running jobs that involve +A **cross-platform (Linux and macOS) service** for managing long-running jobs that involve downloading and uploading media via WebDAV, using FFmpeg to analyse and transcode video, with strong guarantees around durability, observability, and crash recovery. This project is designed to run as a **real OS service / daemon** on: -- Windows (Windows Service) - macOS (launchd) - Linux (systemd) +Windows is not supported. + The daemon is **not HTTP-bound**. It runs independently in the background and exposes control via a local CLI / RPC interface. @@ -47,7 +48,7 @@ a low idle memory footprint, and easy cross-compilation to every supported platf - Survive SSH disconnects, restarts, and crashes - Explicitly model job state and failure reasons - Provide durable, inspectable job state -- Work consistently on Windows, Linux, and macOS +- Work consistently on Linux and macOS - Avoid coupling to HTTP or web frameworks - Stay drop-in compatible with barn's CLI, JSON/XML output, and job directory layout @@ -85,7 +86,7 @@ chmod +x zag-linux-x64 && sudo mv zag-linux-x64 /usr/local/bin/zag zag --version ``` -The binaries are static and need no runtime. Windows is not supported yet. +The binaries are static and need no runtime. Windows is not supported and there are no plans to add it. ### Setting up the service @@ -276,7 +277,7 @@ documentation: `curl` as LOW. - `config show` calls the load-limit section `load_levels`, matching the config file. -Not implemented yet: Windows, `max_disk_usage_gb`, `preserve_work_dir`, auto-update. +Not implemented: Windows (dropped on purpose), `max_disk_usage_gb`, `preserve_work_dir`, auto-update. ## Project Layout diff --git a/build.zig b/build.zig index bbcc63a..f819088 100644 --- a/build.zig +++ b/build.zig @@ -7,6 +7,7 @@ pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{ .default_target = if (builtin.os.tag == .linux) .{ .abi = .musl } else .{}, }); + if (target.result.os.tag == .windows) b.fatal("zag does not support Windows (supported: Linux and macOS)", .{}); const optimize = b.standardOptimizeOption(.{}); const strip = b.option(bool, "strip", "Strip debug symbols from the binary") orelse false; diff --git a/src/root.zig b/src/root.zig index c147516..ca7dbca 100644 --- a/src/root.zig +++ b/src/root.zig @@ -1,6 +1,11 @@ //! zag: cross-platform job daemon (Zig port of barn). pub const version = @import("build_options").version; +comptime { + if (@import("builtin").os.tag == .windows) + @compileError("zag does not support Windows (supported: Linux and macOS)"); +} + pub const duration = @import("duration.zig"); pub const timestamp = @import("timestamp.zig"); pub const state = @import("state.zig");