Skip to content

Commit ebeed6b

Browse files
authored
chore: update Go to use Go1.16 (#165)
* chore: update Go to use Go1.16 Signed-off-by: Jacob Lisi <[email protected]> * update go.mod to Go 1.16 Signed-off-by: Jacob Lisi <[email protected]>
1 parent 34d65b8 commit ebeed6b

File tree

8 files changed

+15
-19
lines changed

8 files changed

+15
-19
lines changed

.github/workflows/validate_pr.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@v2
22-
- name: Set up Go 1.14
22+
- name: Set up Go 1.16
2323
uses: actions/setup-go@v1
2424
with:
25-
go-version: 1.14
25+
go-version: 1.16
2626
- name: Unit Tests
2727
run: make test
2828
build:
2929
name: Build Binaries
3030
runs-on: ubuntu-latest
3131
steps:
3232
- uses: actions/checkout@v2
33-
- name: Set up Go 1.14
33+
- name: Set up Go 1.16
3434
uses: actions/setup-go@v1
3535
with:
36-
go-version: 1.14
36+
go-version: 1.16
3737
- name: Build All
3838
run: make all

cmd/chunktool/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM golang:1.14.9-stretch as build
1+
FROM golang:1.16.3-stretch as build
22
ARG GOARCH="amd64"
33
COPY . /build_dir
44
WORKDIR /build_dir
55
ENV GOPROXY=https://proxy.golang.org
66
RUN make clean && make chunktool
77

8-
FROM alpine:3.9
8+
FROM alpine:3.13
99
RUN apk add --update --no-cache ca-certificates
1010
COPY --from=build /build_dir/cmd/chunktool/chunktool /usr/bin/chunktool
1111
EXPOSE 80

cmd/cortextool/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM golang:1.14.9-stretch as build
1+
FROM golang:1.16.3-stretch as build
22
ARG GOARCH="amd64"
33
COPY . /build_dir
44
WORKDIR /build_dir
55
ENV GOPROXY=https://proxy.golang.org
66
RUN make clean && make cortextool
77

8-
FROM alpine:3.9
8+
FROM alpine:3.13
99
RUN apk add --update --no-cache ca-certificates
1010
COPY --from=build /build_dir/cmd/cortextool/cortextool /usr/bin/cortextool
1111
EXPOSE 80

cmd/e2ealerting/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM golang:1.14.9-stretch as build
1+
FROM golang:1.16.3-stretch as build
22
ARG GOARCH="amd64"
33
COPY . /build_dir
44
WORKDIR /build_dir
55
RUN make clean && make e2ealerting
66

7-
FROM alpine:3.12
7+
FROM alpine:3.13
88
RUN apk add --update --no-cache ca-certificates
99
COPY --from=build /build_dir/cmd/e2ealerting/e2ealerting /usr/bin/e2ealerting
1010
EXPOSE 80

cmd/logtool/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM golang:1.14.9-stretch as build
1+
FROM golang:1.16.3-stretch as build
22
ARG GOARCH="amd64"
33
COPY . /build_dir
44
WORKDIR /build_dir
55
ENV GOPROXY=https://proxy.golang.org
66
RUN make clean && make logtool
77

8-
FROM alpine:3.9
8+
FROM alpine:3.13
99
RUN apk add --update --no-cache ca-certificates
1010
COPY --from=build /build_dir/cmd/logtool/logtool /usr/bin/logtool
1111
EXPOSE 80

go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/grafana/cortex-tools
22

3-
go 1.14
3+
go 1.16
44

55
require (
66
cloud.google.com/go/bigtable v1.2.0
@@ -34,6 +34,7 @@ require (
3434
github.com/prometheus/prometheus v1.8.2-0.20210215121130-6f488061dfb4
3535
github.com/sirupsen/logrus v1.7.0
3636
github.com/stretchr/testify v1.7.0
37+
github.com/thanos-io/thanos v0.13.1-0.20210226164558-03dace0a1aa1
3738
github.com/weaveworks/common v0.0.0-20210112142934-23c8d7fa6120
3839
go.uber.org/atomic v1.7.0
3940
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a

go.sum

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxB
9999
github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0=
100100
github.com/Azure/go-autorest/autorest/mocks v0.3.0/go.mod h1:a8FDP3DYzQ4RYfVAxAN3SVSiiO77gL2j2ronKKP0syM=
101101
github.com/Azure/go-autorest/autorest/mocks v0.4.0/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k=
102-
github.com/Azure/go-autorest/autorest/mocks v0.4.1 h1:K0laFcLE6VLTOwNgSxaGbUcLPuGXlNkbVvq4cW4nIHk=
103102
github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k=
104103
github.com/Azure/go-autorest/autorest/to v0.3.0/go.mod h1:MgwOyqaIuKdG4TL/2ywSsIWKAfJfgHDo8ObuUk3t5sA=
105104
github.com/Azure/go-autorest/autorest/to v0.3.1-0.20191028180845-3492b2aff503/go.mod h1:MgwOyqaIuKdG4TL/2ywSsIWKAfJfgHDo8ObuUk3t5sA=
@@ -236,7 +235,6 @@ github.com/aws/aws-sdk-go v1.35.31/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2z
236235
github.com/aws/aws-sdk-go v1.37.8 h1:9kywcbuz6vQuTf+FD+U7FshafrHzmqUCjgAEiLuIJ8U=
237236
github.com/aws/aws-sdk-go v1.37.8/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
238237
github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g=
239-
github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f h1:ZNv7On9kyUzm7fvRZumSyy/IUiSC7AzL0I1jKKtwooA=
240238
github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f/go.mod h1:AuiFmCCPBSrqvVMvuqFuk0qogytodnVFVSN5CeJB8Gc=
241239
github.com/beevik/ntp v0.2.0/go.mod h1:hIHWr+l3+/clUnF44zdK+CWW7fO8dR5cIylAQ76NRpg=
242240
github.com/benbjohnson/clock v1.0.3/go.mod h1:bGMdMPoPVvcYyt1gHDf4J2KE153Yf9BuiUKYMaxlTDM=
@@ -349,7 +347,6 @@ github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:ma
349347
github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
350348
github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY=
351349
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
352-
github.com/creack/pty v1.1.11 h1:07n33Z8lZxZ2qwegKbObQohDhXDQxiMMz1NOUGYlesw=
353350
github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
354351
github.com/cznic/b v0.0.0-20180115125044-35e9bbe41f07/go.mod h1:URriBxXwVq5ijiJ12C7iIZqlA69nTlI+LgI6/pwftG8=
355352
github.com/cznic/fileutil v0.0.0-20180108211300-6a051e75936f/go.mod h1:8S58EK26zhXSxzv7NQFpnliaOQsmDUxvoQO3rt154Vg=
@@ -451,7 +448,6 @@ github.com/ericchiang/k8s v1.2.0/go.mod h1:/OmBgSq2cd9IANnsGHGlEz27nwMZV2YxlpXuQ
451448
github.com/evanphx/json-patch v0.0.0-20200808040245-162e5629780b/go.mod h1:NAJj0yf/KaRKURN6nyi7A9IZydMivZEm9oQLWNjfKDc=
452449
github.com/evanphx/json-patch v4.2.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
453450
github.com/evanphx/json-patch v4.5.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
454-
github.com/evanphx/json-patch v4.9.0+incompatible h1:kLcOMZeuLAJvL2BPWLMIj5oaZQobrkAqrL+WFZwQses=
455451
github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
456452
github.com/facette/natsort v0.0.0-20181210072756-2cd4dd1e2dcb h1:IT4JYU7k4ikYg1SCxNI1/Tieq/NFvh6dzLdgi7eu0tM=
457453
github.com/facette/natsort v0.0.0-20181210072756-2cd4dd1e2dcb/go.mod h1:bH6Xx7IW64qjjJq8M2u4dxNaBiDfKK+z/3eGDpXEQhc=
@@ -2218,7 +2214,6 @@ gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C
22182214
gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo=
22192215
gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw=
22202216
gotest.tools/v3 v3.0.2/go.mod h1:3SzNCllyD9/Y+b5r9JIKQ474KzkZyqLqEfYqMsX94Bk=
2221-
gotest.tools/v3 v3.0.3 h1:4AuOwCGf4lLR9u3YOe2awrHygurzhO/HeQ6laiA6Sx0=
22222217
gotest.tools/v3 v3.0.3/go.mod h1:Z7Lb0S5l+klDB31fvDQX8ss/FlKDxtlFlw3Oa8Ymbl8=
22232218
honnef.co/go/netdb v0.0.0-20150201073656-a416d700ae39/go.mod h1:rbNo0ST5hSazCG4rGfpHrwnwvzP1QX62WbhzD+ghGzs=
22242219
honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
@@ -2268,7 +2263,6 @@ k8s.io/kube-openapi v0.0.0-20190816220812-743ec37842bf/go.mod h1:1TqjTSzOxsLGIKf
22682263
k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a/go.mod h1:1TqjTSzOxsLGIKfj0lK8EeCP7K1iUG65v09OM0/WG5E=
22692264
k8s.io/kube-openapi v0.0.0-20200410145947-61e04a5be9a6/go.mod h1:GRQhZsXIAJ1xR0C9bd8UpWHZ5plfAS9fzPjJuQ6JL3E=
22702265
k8s.io/kube-openapi v0.0.0-20200805222855-6aeccd4b50c6/go.mod h1:UuqjUnNftUyPE5H64/qeyjQoUZhGpeFDVdxjTeEVN2o=
2271-
k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd h1:sOHNzJIkytDF6qadMNKhhDRpc6ODik8lVC6nOur7B2c=
22722266
k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd/go.mod h1:WOJ3KddDSol4tAGcJo0Tvi+dK12EcqSLqcWsryKMpfM=
22732267
k8s.io/utils v0.0.0-20190809000727-6c36bc71fc4a/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew=
22742268
k8s.io/utils v0.0.0-20191114200735-6ca3b61696b6/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew=

vendor/modules.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,7 @@ github.com/stretchr/testify/assert
724724
github.com/stretchr/testify/mock
725725
github.com/stretchr/testify/require
726726
# github.com/thanos-io/thanos v0.13.1-0.20210226164558-03dace0a1aa1
727+
## explicit
727728
github.com/thanos-io/thanos/pkg/block
728729
github.com/thanos-io/thanos/pkg/block/indexheader
729730
github.com/thanos-io/thanos/pkg/block/metadata

0 commit comments

Comments
 (0)