Skip to content

Commit 962eaf1

Browse files
authored
chore: upgrade to go 1.18 (#124)
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
1 parent f86d095 commit 962eaf1

8 files changed

+7
-9
lines changed

.golangci.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@ linters:
99
- gocyclo
1010
- gofmt
1111
- goimports
12-
- golint
1312
- gosec
1413
- gosimple
1514
- govet
1615
- ineffassign
17-
- maligned
1816
- misspell
1917
- nakedret
2018
- prealloc
19+
- revive
2120
- staticcheck
2221
- structcheck
2322
- unused

.pipelines/templates/e2e-kind-template.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- task: GoTool@0
2222
inputs:
23-
version: 1.17
23+
version: 1.18
2424

2525
- script: make e2e-install-prerequisites
2626
displayName: "Install e2e test prerequisites"

.pipelines/templates/e2e-upgrade-template.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- task: GoTool@0
2222
inputs:
23-
version: 1.17
23+
version: 1.18
2424

2525
- script: make e2e-install-prerequisites
2626
displayName: "Install e2e test prerequisites"

.pipelines/templates/unit-tests-template.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
- task: GoTool@0
1212
inputs:
13-
version: 1.17
13+
version: 1.18
1414
- script: make lint
1515
displayName: Run lint
1616
- script: make unit-test

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.17-bullseye as builder
1+
FROM golang:1.18-bullseye as builder
22

33
WORKDIR /workspace
44
# Copy the Go Modules manifests

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/Azure/kubernetes-kms
22

3-
go 1.17
3+
go 1.18
44

55
require (
66
github.com/Azure/azure-sdk-for-go v62.1.0+incompatible

go.sum

-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QH
105105
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
106106
github.com/certifi/gocertifi v0.0.0-20191021191039-0944d244cd40/go.mod h1:sGbDF6GwGcLpkNXPUTkMRoywsNa/ol15pxFe6ERfguA=
107107
github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054/go.mod h1:sGbDF6GwGcLpkNXPUTkMRoywsNa/ol15pxFe6ERfguA=
108-
github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
109108
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
110109
github.com/cespare/xxhash/v2 v2.1.1 h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+qY=
111110
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=

tools/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/Azure/kubernetes-kms/tools
22

3-
go 1.17
3+
go 1.18
44

55
require github.com/golangci/golangci-lint v1.44.2
66

0 commit comments

Comments
 (0)