Add some fixes for building in tip or with golang 1.6
This commit is contained in:
@@ -26,7 +26,11 @@ fi
|
||||
|
||||
# build etcd
|
||||
git clone --recursive https://github.com/coreos/etcd/ && cd etcd
|
||||
git checkout v2.2.4 # TODO: update to newer versions as needed
|
||||
goversion=$(go version)
|
||||
# if 'go version' contains string 'devel', then use git master of etcd...
|
||||
if [ "${goversion#*devel}" == "$goversion" ]; then
|
||||
git checkout v2.2.4 # TODO: update to newer versions as needed
|
||||
fi
|
||||
[ -x build ] && ./build
|
||||
mkdir -p ~/bin/
|
||||
cp bin/etcd ~/bin/
|
||||
|
||||
@@ -9,7 +9,7 @@ ROOT=$(dirname "${BASH_SOURCE}")/..
|
||||
|
||||
GO_VERSION=($(go version))
|
||||
|
||||
if [[ -z $(echo "${GO_VERSION[2]}" | grep -E 'go1.2|go1.3|go1.4|go1.5') ]]; then
|
||||
if [[ -z $(echo "${GO_VERSION[2]}" | grep -E 'go1.2|go1.3|go1.4|go1.5|go1.6') ]]; then
|
||||
echo "Unknown go version '${GO_VERSION}', skipping gofmt."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user