From 144b32a4b6f77c9d62f017280c12e72b819c7978 Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Tue, 17 Mar 2026 17:02:06 +0200 Subject: [PATCH] fix(scripts/develop): skip build on Windows via build tag (#23118) Previously main.go used syscall.SysProcAttr{Setpgid: true} and syscall.Kill, both undefined on Windows. This broke GOOS=windows cross-compilation. Add a //go:build !windows constraint to the package since it is a dev-only tool that requires Unix utilities (bash, make, etc.) and is not intended to run on Windows. Refs #23054 Fixes coder/internal#1407 --- scripts/develop/main.go | 2 ++ scripts/develop/main_test.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/scripts/develop/main.go b/scripts/develop/main.go index d639e2a842..4973029b23 100644 --- a/scripts/develop/main.go +++ b/scripts/develop/main.go @@ -1,3 +1,5 @@ +//go:build !windows + // Command develop orchestrates the Coder development environment. It // builds the binary, starts the API server and frontend dev server, // sets up a first user, and handles graceful shutdown on signals. diff --git a/scripts/develop/main_test.go b/scripts/develop/main_test.go index e165c14b39..1594d2806a 100644 --- a/scripts/develop/main_test.go +++ b/scripts/develop/main_test.go @@ -1,3 +1,5 @@ +//go:build !windows + package main import (