From 29330888e95b59f36d30f754da19a12c1810592c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Thanh=20Quang?= Date: Sat, 23 Mar 2024 18:31:48 +0700 Subject: [PATCH] :penguin: panic on non-linux environments --- main.go | 2 ++ main_other.go | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 main_other.go diff --git a/main.go b/main.go index 0042f13..61eb03b 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,5 @@ +//go:build linux + package main import ( diff --git a/main_other.go b/main_other.go new file mode 100644 index 0000000..270d193 --- /dev/null +++ b/main_other.go @@ -0,0 +1,7 @@ +//go:build !linux + +package main + +func main() { + panic("igloo only works on Linux, other OSes are not supported and never will be, try using WSL (on Windows) or Docker (on MacOS).") +}