Skip to content

Commit f6ba5ac

Browse files
author
Quentin Perez
committed
Check go version in cmd/scw too
1 parent 141dcf7 commit f6ba5ac

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

cmd/scw/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
// license that can be found in the LICENSE.md file.
44

55
// Manage BareMetal Servers from Command Line (as easily as with Docker)
6+
7+
// +build go1.5
8+
69
package main
710

811
import (

cmd/scw/main_unsupported.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// +build !go1.5
2+
3+
package main
4+
5+
func error() {
6+
`Bad go version, please install a version greater than or equal to 1.5`
7+
}

0 commit comments

Comments
 (0)