From 80ea10dcff70d47ff7ae090cd5b7d32f56fd6c01 Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Fri, 6 Mar 2026 01:06:35 +0000 Subject: [PATCH] fix(detect): add stub for unsupported platforms (darwin, windows, etc.) detect package failed to compile on non-Linux/FreeBSD/OpenBSD because candidates() and allManagers() had no fallback. Added detect_other.go with empty implementations. --- detect/detect_other.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 detect/detect_other.go diff --git a/detect/detect_other.go b/detect/detect_other.go new file mode 100644 index 0000000..98aa9e4 --- /dev/null +++ b/detect/detect_other.go @@ -0,0 +1,13 @@ +//go:build !linux && !freebsd && !openbsd + +package detect + +// candidates returns an empty list on unsupported platforms. +func candidates() []managerFactory { + return nil +} + +// allManagers returns an empty list on unsupported platforms. +func allManagers() []managerFactory { + return nil +}