Skip to content

S02-04 - Go on Three Operating Systems

Purpose: How the Go module is checked on macOS, Linux and Windows, and how its tasks run under Windows cmd.exe.

Go runs on macOS, Linux, and Windows from the start. Most code is cross-platform Go (S12-platformsS12-platforms: PlatformsWhich host and guest operating systems Wraith Box targets, how platform-specific code is isolated, what each platform uses, and how wb works inside WSL.).

Swift runs on macOS runners only. Docs, workflow linting, and the vulnerability scan run on Linux.

mise runs a task’s run with cmd.exe on Windows. So the tasks CI calls on Windows are single plain commands in the module directory (dir).

  • run_windows covers a flag that differs, such as go test without -race, which needs a C compiler.
  • There is one Go module. Adding a second means extending the Go tasks deliberately.
  • Tasks that only run on macOS or Linux may use shell scripts: go:cross, go:vulncheck, the proto: tasks, Swift and docs.

Status: Active