Skip to content

Commit cc72f5d

Browse files
committed
Merge pull request #232 from QuentinPerez/go_version
Check go version in cmd/scw too
2 parents 1dd8150 + f6ba5ac commit cc72f5d

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)