mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
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
This commit is contained in:
committed by
GitHub
parent
a40716b6fe
commit
144b32a4b6
@@ -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.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
//go:build !windows
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
Reference in New Issue
Block a user