Skip to content

Commit 01de232

Browse files
jackspirouclaude
andcommitted
fix(build): limit stderr suppression to Darwin only
Conservative approach to avoid cross-platform build issues. Only enable file descriptor manipulation on macOS where it's tested. - stderr_darwin.go: macOS-only implementation with syscall.Dup2 - stderr_other.go: no-op for all other platforms (Linux, Windows, etc.) This ensures GoReleaser can build for all platforms successfully. SDK warnings may appear on non-macOS platforms but that's acceptable. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 3440640 commit 01de232

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build (darwin || linux) && !js && !wasip1
1+
//go:build darwin
22

33
package auth
44

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//go:build !darwin
2+
3+
package auth
4+
5+
// suppressStderr on non-Darwin platforms just runs the function normally.
6+
// Stderr suppression is only implemented on macOS (Darwin).
7+
func suppressStderr(fn func() error) error {
8+
return fn()
9+
}

cmd/starmap/cmd/auth/stderr_windows.go

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)