From b23f0a6874b146d4ca46e241d37ea38478135b07 Mon Sep 17 00:00:00 2001 From: Shlomi Noach Date: Mon, 7 May 2018 12:34:42 +0300 Subject: [PATCH 1/2] build.sh: supporting go1.9 and above --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index ad6eeee..4f38512 100755 --- a/build.sh +++ b/build.sh @@ -10,7 +10,7 @@ function build { GOOS=$3 GOARCH=$4 - if [[ $(go version | egrep "go1[.][012345678]") ]]; then + if ! go version | egrep -q 'go(1[.]9|1[.]1[0-9])' ; then echo "go version is too low. Must use 1.9 or above" exit 1 fi From 37ed92d4118815c4c1602d2bc4b3668a7b6cc733 Mon Sep 17 00:00:00 2001 From: Shlomi Noach Date: Mon, 7 May 2018 19:03:32 +0300 Subject: [PATCH 2/2] go version, updated README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2138109..008c65b 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ Please see [Coding gh-ost](doc/coding-ghost.md) for a guide to getting started d [Download latest release here](https://github.com/github/gh-ost/releases/latest) -`gh-ost` is a Go project; it is built with Go `1.8` (though `1.7` should work as well). To build on your own, use either: +`gh-ost` is a Go project; it is built with Go `1.9` and above. To build on your own, use either: - [script/build](https://github.com/github/gh-ost/blob/master/script/build) - this is the same build script used by CI hence the authoritative; artifact is `./bin/gh-ost` binary. - [build.sh](https://github.com/github/gh-ost/blob/master/build.sh) for building `tar.gz` artifacts in `/tmp/gh-ost`