Skip to content

Commit ce65277

Browse files
authored
feat(deps): update Go version to v1.20.4 and update deps (#13)
* feat(deps): update Go version to v1.20.4 and update deps Signed-off-by: Niladri Halder <[email protected]> * feat(ci): update build Go version in github actions Signed-off-by: Niladri Halder <[email protected]> * fix(lint): remove use of deprecated functions, and handle error Signed-off-by: Niladri Halder <[email protected]> --------- Signed-off-by: Niladri Halder <[email protected]>
1 parent 4b18af4 commit ce65277

File tree

2,036 files changed

+280
-825529
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,036 files changed

+280
-825529
lines changed

.github/workflows/golang-ci.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,17 @@ jobs:
2020
name: lint
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v2
23+
- name: Set up Go 1.20.4
24+
uses: actions/setup-go@v4
25+
with:
26+
go-version: '1.20.4'
27+
cache: false
28+
- uses: actions/checkout@v3
2429
- name: golangci-lint
25-
uses: golangci/golangci-lint-action@v2
30+
uses: golangci/golangci-lint-action@v3
2631
with:
2732
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
28-
version: v1.29
33+
version: v1.52.2
2934

3035
# Optional: working directory, useful for monorepos
3136
# working-directory: somedir

.github/workflows/test.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424

25-
- name: Set up Go 1.14
26-
uses: actions/setup-go@v1
25+
- name: Set up Go 1.20.4
26+
uses: actions/setup-go@v4
2727
with:
28-
go-version: 1.14.7
28+
go-version: '1.20.4'
29+
cache: false
2930
id: go
3031

3132
- name: Check out code into the Go module directory
32-
uses: actions/checkout@v2
33+
uses: actions/checkout@v3
3334

3435
- name: verify license
3536
run: make license-check

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
PACKAGES = $(shell go list ./... | grep -v 'vendor\|pkg/client\|tests')
15+
PACKAGES = $(shell go list ./... | grep -v 'pkg/client\|tests')
1616

1717
.PHONY: format
1818
format:
@@ -33,7 +33,7 @@ test: format
3333
.PHONY: license-check
3434
license-check:
3535
@echo "--> Checking license header..."
36-
@licRes=$$(for file in $$(find . -type f -regex '.*\.sh\|.*\.go\|.*Docker.*\|.*\Makefile*' ! -path './vendor/*' ) ; do \
36+
@licRes=$$(for file in $$(find . -type f -regex '.*\.sh\|.*\.go\|.*Docker.*\|.*\Makefile*') ; do \
3737
awk 'NR<=5' $$file | grep -Eq "(Copyright|generated|GENERATED)" || echo $$file; \
3838
done); \
3939
if [ -n "$${licRes}" ]; then \

go.mod

+45-36
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,53 @@
11
module github.com/openebs/lib-csi
22

3-
go 1.14
3+
go 1.20
44

55
require (
6-
github.com/container-storage-interface/spec v1.1.0
7-
github.com/google/uuid v1.1.2
8-
github.com/imdario/mergo v0.3.7 // indirect
6+
github.com/container-storage-interface/spec v1.8.0
7+
github.com/google/uuid v1.3.0
98
github.com/pkg/errors v0.9.1
10-
google.golang.org/grpc v1.27.1
11-
k8s.io/api v0.20.2
12-
k8s.io/apimachinery v0.20.2
13-
k8s.io/client-go v0.20.2
14-
k8s.io/klog v1.0.0
15-
k8s.io/klog/v2 v2.4.0
16-
k8s.io/utils v0.0.0-20201110183641-67b214c5f920
9+
google.golang.org/grpc v1.55.0
10+
k8s.io/api v0.27.2
11+
k8s.io/apimachinery v0.27.2
12+
k8s.io/client-go v0.27.2
13+
k8s.io/klog/v2 v2.100.1
14+
k8s.io/utils v0.0.0-20230505201702-9f6742963106
1715
)
1816

19-
replace (
20-
k8s.io/api => k8s.io/api v0.20.2
21-
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.20.2
22-
k8s.io/apimachinery => k8s.io/apimachinery v0.20.2
23-
k8s.io/apiserver => k8s.io/apiserver v0.20.2
24-
k8s.io/cli-runtime => k8s.io/cli-runtime v0.20.2
25-
k8s.io/client-go => k8s.io/client-go v0.20.2
26-
k8s.io/cloud-provider => k8s.io/cloud-provider v0.20.2
27-
k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.20.2
28-
k8s.io/code-generator => k8s.io/code-generator v0.20.2
29-
k8s.io/component-base => k8s.io/component-base v0.20.2
30-
k8s.io/cri-api => k8s.io/cri-api v0.20.2
31-
k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.20.2
32-
k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.20.2
33-
k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.20.2
34-
k8s.io/kube-proxy => k8s.io/kube-proxy v0.20.2
35-
k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.20.2
36-
k8s.io/kubectl => k8s.io/kubectl v0.20.2
37-
k8s.io/kubelet => k8s.io/kubelet v0.20.2
38-
k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.20.2
39-
k8s.io/metrics => k8s.io/metrics v0.20.2
40-
k8s.io/node-api => k8s.io/node-api v0.20.2
41-
k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.20.2
42-
k8s.io/sample-cli-plugin => k8s.io/sample-cli-plugin v0.20.2
43-
k8s.io/sample-controller => k8s.io/sample-controller v0.20.2
17+
require (
18+
github.com/davecgh/go-spew v1.1.1 // indirect
19+
github.com/emicklei/go-restful/v3 v3.10.2 // indirect
20+
github.com/go-logr/logr v1.2.4 // indirect
21+
github.com/go-openapi/jsonpointer v0.19.6 // indirect
22+
github.com/go-openapi/jsonreference v0.20.2 // indirect
23+
github.com/go-openapi/swag v0.22.3 // indirect
24+
github.com/gogo/protobuf v1.3.2 // indirect
25+
github.com/golang/protobuf v1.5.3 // indirect
26+
github.com/google/gnostic v0.6.9 // indirect
27+
github.com/google/go-cmp v0.5.9 // indirect
28+
github.com/google/gofuzz v1.2.0 // indirect
29+
github.com/imdario/mergo v0.3.15 // indirect
30+
github.com/josharian/intern v1.0.0 // indirect
31+
github.com/json-iterator/go v1.1.12 // indirect
32+
github.com/mailru/easyjson v0.7.7 // indirect
33+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
34+
github.com/modern-go/reflect2 v1.0.2 // indirect
35+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
36+
github.com/spf13/pflag v1.0.5 // indirect
37+
golang.org/x/net v0.10.0 // indirect
38+
golang.org/x/oauth2 v0.8.0 // indirect
39+
golang.org/x/sys v0.8.0 // indirect
40+
golang.org/x/term v0.8.0 // indirect
41+
golang.org/x/text v0.9.0 // indirect
42+
golang.org/x/time v0.3.0 // indirect
43+
google.golang.org/appengine v1.6.7 // indirect
44+
google.golang.org/genproto/googleapis/rpc v0.0.0-20230526203410-71b5a4ffd15e // indirect
45+
google.golang.org/protobuf v1.30.0 // indirect
46+
gopkg.in/inf.v0 v0.9.1 // indirect
47+
gopkg.in/yaml.v2 v2.4.0 // indirect
48+
gopkg.in/yaml.v3 v3.0.1 // indirect
49+
k8s.io/kube-openapi v0.0.0-20230525220651-2546d827e515 // indirect
50+
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
51+
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
52+
sigs.k8s.io/yaml v1.3.0 // indirect
4453
)

0 commit comments

Comments
 (0)