From e99a378a8545ec84cde31113ece89fc041710791 Mon Sep 17 00:00:00 2001 From: Aaron Schlesinger Date: Thu, 31 Aug 2017 15:24:04 -0700 Subject: [PATCH] Removing the "no buildable source files" error on non-linux machines --- cmd/drivers/kvm/main-nolinux.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cmd/drivers/kvm/main-nolinux.go diff --git a/cmd/drivers/kvm/main-nolinux.go b/cmd/drivers/kvm/main-nolinux.go new file mode 100644 index 0000000000..6727e83ac8 --- /dev/null +++ b/cmd/drivers/kvm/main-nolinux.go @@ -0,0 +1,17 @@ +// +build !linux + +package main + +import ( + "fmt" + "os" +) + +func main() { + fmt.Println( + "this driver was built on a non-linux machine, so it is " + + "unavailable. Please re-build minikube on a linux machine to enable " + + "it.", + ) + os.Exit(1) +}