Drop Windows support: clear build error, docs updated
CI / test (push) Failing after 11s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Daniel SamsonandClaude Sonnet 5.5 committed 2026-10-17 14:48:57 +01:00
1 parent 4db6b7b1b3
commit f4e15aa32d
4 files changed
+18 -5

No files matched your search

+6
View File
@@ -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`.
+6 -5
View File
@@ -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
+1
View File
@@ -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;
+5
View File
@@ -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");