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.
This commit is contained in:
2026-03-06 01:06:35 +00:00
parent 85e06ffc44
commit 80ea10dcff

13
detect/detect_other.go Normal file
View File

@@ -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
}