Skip to content

Commit 1eaa42c

Browse files
liamsimelekes
authored andcommitted
golang 1.12.0 (tendermint#3376)
- update docker image on circleci - remove GOCACHE=off from Makefile (see: https://tip.golang.org/doc/go1.12#gocache) - update badge in readme - update in scripts/install - update Vagrantfile - update in networks/remote/integration.sh - tools/build/Makefile
1 parent 8c9df30 commit 1eaa42c

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

.circleci/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2
33
defaults: &defaults
44
working_directory: /go/src/github.com/tendermint/tendermint
55
docker:
6-
- image: circleci/golang:1.11.4
6+
- image: circleci/golang:1.12.0
77
environment:
88
GOBIN: /tmp/workspace/bin
99

@@ -154,7 +154,7 @@ jobs:
154154
for pkg in $(go list github.com/tendermint/tendermint/... | circleci tests split --split-by=timings); do
155155
id=$(basename "$pkg")
156156
157-
GOCACHE=off go test -v -timeout 5m -race -coverprofile=/tmp/workspace/profiles/$id.out -covermode=atomic "$pkg" | tee "/tmp/logs/$id-$RANDOM.log"
157+
go test -v -timeout 5m -race -coverprofile=/tmp/workspace/profiles/$id.out -covermode=atomic "$pkg" | tee "/tmp/logs/$id-$RANDOM.log"
158158
done
159159
- persist_to_workspace:
160160
root: /tmp/workspace

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ clean_certs:
131131
rm -f db/remotedb/::.crt db/remotedb/::.key
132132

133133
test_libs: gen_certs
134-
GOCACHE=off go test -tags gcc $(PACKAGES)
134+
go test -tags gcc $(PACKAGES)
135135
make clean_certs
136136

137137
grpc_dbserver:
@@ -214,11 +214,11 @@ vagrant_test:
214214
### go tests
215215
test:
216216
@echo "--> Running go test"
217-
@GOCACHE=off go test -p 1 $(PACKAGES)
217+
go test -p 1 $(PACKAGES)
218218

219219
test_race:
220220
@echo "--> Running go test --race"
221-
@GOCACHE=off go test -p 1 -v -race $(PACKAGES)
221+
go test -p 1 -v -race $(PACKAGES)
222222

223223
# uses https://github.com/sasha-s/go-deadlock/ to detect potential deadlocks
224224
test_with_deadlock:

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Or [Blockchain](https://en.wikipedia.org/wiki/Blockchain_(database)), for short.
88
[![API Reference](
99
https://camo.githubusercontent.com/915b7be44ada53c290eb157634330494ebe3e30a/68747470733a2f2f676f646f632e6f72672f6769746875622e636f6d2f676f6c616e672f6764646f3f7374617475732e737667
1010
)](https://godoc.org/github.com/tendermint/tendermint)
11-
[![Go version](https://img.shields.io/badge/go-1.10.4-blue.svg)](https://github.com/moovweb/gvm)
11+
[![Go version](https://img.shields.io/badge/go-1.12.0-blue.svg)](https://github.com/moovweb/gvm)
1212
[![riot.im](https://img.shields.io/badge/riot.im-JOIN%20CHAT-green.svg)](https://riot.im/app/#/room/#tendermint:matrix.org)
1313
[![license](https://img.shields.io/github/license/tendermint/tendermint.svg)](https://github.com/tendermint/tendermint/blob/master/LICENSE)
1414
[![](https://tokei.rs/b1/github/tendermint/tendermint?category=lines)](https://github.com/tendermint/tendermint)

Vagrantfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ Vagrant.configure("2") do |config|
2929
usermod -a -G docker vagrant
3030
3131
# install go
32-
wget -q https://dl.google.com/go/go1.11.linux-amd64.tar.gz
33-
tar -xvf go1.11.linux-amd64.tar.gz
32+
wget -q https://dl.google.com/go/go1.12.linux-amd64.tar.gz
33+
tar -xvf go1.12.linux-amd64.tar.gz
3434
mv go /usr/local
35-
rm -f go1.11.linux-amd64.tar.gz
35+
rm -f go1.12.linux-amd64.tar.gz
3636
3737
# install nodejs (for docs)
3838
curl -sL https://deb.nodesource.com/setup_11.x | bash -

networks/remote/integration.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ sudo apt-get upgrade -y
1010
sudo apt-get install -y jq unzip python-pip software-properties-common make
1111

1212
# get and unpack golang
13-
curl -O https://storage.googleapis.com/golang/go1.10.linux-amd64.tar.gz
14-
tar -xvf go1.10.linux-amd64.tar.gz
13+
curl -O https://storage.googleapis.com/golang/go1.12.linux-amd64.tar.gz
14+
tar -xvf go1.12.linux-amd64.tar.gz
1515

1616
## move binary and add to path
1717
mv go /usr/local

scripts/install/install_tendermint_arm.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ REPO=github.com/tendermint/tendermint
55
# change this to a specific release or branch
66
BRANCH=master
77

8-
GO_VERSION=1.11.4
8+
GO_VERSION=1.12.0
99

1010
sudo apt-get update -y
1111

scripts/install/install_tendermint_bsd.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
set BRANCH=master
1717
set REPO=github.com/tendermint/tendermint
1818

19-
set GO_VERSION=1.11.4
19+
set GO_VERSION=1.12.0
2020

2121
sudo pkg update
2222

scripts/install/install_tendermint_ubuntu.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ REPO=github.com/tendermint/tendermint
1313
# change this to a specific release or branch
1414
BRANCH=master
1515

16-
GO_VERSION=1.11.4
16+
GO_VERSION=1.12.0
1717

1818
sudo apt-get update -y
1919
sudo apt-get install -y make

tools/build/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
requirements_check = true
66
gpg_check = false
7-
go_min_version = 1.9.4
7+
go_min_version = 1.12.0
88
gpg_key = 2122CBE9
99

1010
ifeq ($(requirements_check),true)

0 commit comments

Comments
 (0)