Skip to content

Commit

Permalink
Upgrade Go version to 1.16 (#3827)
Browse files Browse the repository at this point in the history
* Upgrade Go version to 1.16

Signed-off-by: Nguyen Le Vu Long <vulongvn98@gmail.com>

* Run make deps

Signed-off-by: Nguyen Le Vu Long <vulongvn98@gmail.com>

* Update change log

Signed-off-by: Nguyen Le Vu Long <vulongvn98@gmail.com>

* fix: revert go version in go.mod to 1.15

Signed-off-by: Nguyen Le Vu Long <vulongvn98@gmail.com>

* fix: run make deps (again)

Signed-off-by: Nguyen Le Vu Long <vulongvn98@gmail.com>

* Run make deps again

Signed-off-by: Nguyen Le Vu Long <vulongvn98@gmail.com>

* Fix CHANGLOG.md format

Signed-off-by: Nguyen Le Vu Long <vulongvn98@gmail.com>

Co-authored-by: Giedrius Statkevičius <giedriuswork@gmail.com>
  • Loading branch information
longngn and GiedriusS committed Apr 8, 2021
1 parent e7fadaf commit 67f906e
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Expand Up @@ -7,10 +7,10 @@ orbs:
executors:
golang:
docker:
- image: cimg/go:1.15-node
- image: cimg/go:1.16-node
golang-test:
docker:
- image: cimg/go:1.15-node
- image: cimg/go:1.16-node
- image: beaukode/docker-swift-onlyone-authv2-keystone

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.15.x
go-version: 1.16.x

- uses: actions/cache@v1
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/go.yaml
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Install Go.
uses: actions/setup-go@v1
with:
go-version: 1.15.x
go-version: 1.16.x

- name: Check out code into the Go module directory
uses: actions/checkout@v1
Expand All @@ -42,7 +42,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.15.x
go-version: 1.16.x

- uses: actions/cache@v1
with:
Expand All @@ -63,7 +63,7 @@ jobs:
- name: Install Go.
uses: actions/setup-go@v1
with:
go-version: 1.15.x
go-version: 1.16.x

- name: Check out code into the Go module directory.
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .go-version
@@ -1 +1 @@
1.15
1.16
2 changes: 1 addition & 1 deletion .promu.yml
@@ -1,5 +1,5 @@
go:
version: 1.15
version: 1.16
repository:
path: github.com/thanos-io/thanos
build:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -33,6 +33,7 @@ We use _breaking :warning:_ to mark changes that are not backward compatible (re

### Changed
- [#3929](https://github.com/thanos-io/thanos/pull/3929) Store: Adds the name of the instantiated memcached client to log info
- [#3827](https://github.com/thanos-io/thanos/pull/3827) Upgrade Go version to 1.16
- [#3948](https://github.com/thanos-io/thanos/pull/3948) Receiver: Adjust `http_request_duration_seconds` buckets for low latency requests.
- [#3856](https://github.com/thanos-io/thanos/pull/3856) Mixin: _breaking :warning:_ Introduce flexible multi-cluster/namespace mode for alerts and dashboards. Removes jobPrefix config option. Removes `namespace` by default.
- [#3937](https://github.com/thanos-io/thanos/pull/3937) Store: Reduce memory usage for range queries.
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.multi-stage
@@ -1,6 +1,6 @@
# By default we pin to amd64 sha. Use make docker to automatically adjust for arm64 versions.
ARG SHA="fca3819d670cdaee0d785499fda202ea01c0640ca0803d26ae6dbf2a1c8c041c"
FROM golang:1.15-alpine3.12 as builder
FROM golang:1.16-alpine3.12 as builder

WORKDIR $GOPATH/src/github.com/thanos-io/thanos
# Change in the docker context invalidates the cache so to leverage docker
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started.md
Expand Up @@ -45,7 +45,7 @@ See [release process docs](release-process.md) for details.

Thanos is built purely in [Golang](https://golang.org/), thus allowing to run Thanos on various x64 operating systems.

If you want to build Thanos from source you would need a working installation of the Go 1.15+ [toolchain](https://github.com/golang/tools) (`GOPATH`, `PATH=${GOPATH}/bin:${PATH}`).
If you want to build Thanos from source you would need a working installation of the Go 1.16+ [toolchain](https://github.com/golang/tools) (`GOPATH`, `PATH=${GOPATH}/bin:${PATH}`).

Thanos can be downloaded and built by running:

Expand Down

0 comments on commit 67f906e

Please sign in to comment.