From f6ba5ac34c3b9755d4baffb7d27d713869182e62 Mon Sep 17 00:00:00 2001 From: Quentin Perez Date: Thu, 5 Nov 2015 13:01:54 +0100 Subject: [PATCH] Check go version in cmd/scw too --- cmd/scw/main.go | 3 +++ cmd/scw/main_unsupported.go | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 cmd/scw/main_unsupported.go diff --git a/cmd/scw/main.go b/cmd/scw/main.go index 7b89d9c56a..bb0fc8f365 100644 --- a/cmd/scw/main.go +++ b/cmd/scw/main.go @@ -3,6 +3,9 @@ // license that can be found in the LICENSE.md file. // Manage BareMetal Servers from Command Line (as easily as with Docker) + +// +build go1.5 + package main import ( diff --git a/cmd/scw/main_unsupported.go b/cmd/scw/main_unsupported.go new file mode 100644 index 0000000000..d579480aa9 --- /dev/null +++ b/cmd/scw/main_unsupported.go @@ -0,0 +1,7 @@ +// +build !go1.5 + +package main + +func error() { + `Bad go version, please install a version greater than or equal to 1.5` +}