diff --git a/.travis.yml b/.travis.yml index 3d79c9aa387c..642d4c1275a5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,14 +7,14 @@ cache: - $GOPATH/src/github.com/pingcap/pd/.retools go: - - 1.11.4 + - 1.12 script: - make ci matrix: include: - - go: 1.11.4 + - go: 1.12 install: - go get github.com/mattn/goveralls env: diff --git a/Dockerfile b/Dockerfile index 2209728b5a70..42973d3bc43d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.11.1-alpine as builder +FROM golang:1.12-alpine as builder MAINTAINER siddontang RUN apk add --no-cache \ diff --git a/README.md b/README.md index aa1b4edcec9d..73a0c68f0ce1 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ PD supports distribution and fault-tolerance by embedding [etcd](https://github. ## Build -1. Make sure [​*Go*​](https://golang.org/) (version 1.11+) is installed. For development, go 1.11.2+ is required. +1. Make sure [​*Go*​](https://golang.org/) (version 1.12) is installed. 2. Use `make` to install PD. PD is installed in the `bin` directory. ## Usage diff --git a/circle.yml b/circle.yml index f7a88049736e..ea1bd6c7d295 100644 --- a/circle.yml +++ b/circle.yml @@ -3,7 +3,7 @@ version: 2 jobs: build: docker: - - image: golang:1.11.4 + - image: golang:1.12 working_directory: /go/src/github.com/pingcap/pd steps: - checkout diff --git a/go.mod b/go.mod index 71fea360e30d..4d7d801e2993 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,7 @@ module github.com/pingcap/pd +go 1.12 + require ( github.com/BurntSushi/toml v0.3.1 github.com/chzyer/logex v1.1.10 // indirect