Skip to content

Commit

Permalink
Updating the Golang version to 1.17 (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
boyamurthy authored and Sahiba-Gupta committed Oct 11, 2024
1 parent b43811c commit 8cf345b
Show file tree
Hide file tree
Showing 6 changed files with 269 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .build.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ BUILD:
NAMESPACE: powermax
NUMBER: 0
GO:
VERSION: 1.16.7
VERSION: 1.17.5
CENTOS:
REPO: ""
NAMESPACE: centos
Expand All @@ -20,7 +20,7 @@ UBI:
UBIM:
REPO: registry.access.redhat.com
NAMESPACE: ubi8/ubi-minimal
VERSION: 8.5-204
SHA: e0814339ffc6c933652bed0c5f8b6416b9a3d40be2f49f95e6e4128387d2a24a
VERSION: 8.5-218
SHA: be112e49c8addf19842a58ee30203f64d33affca6eb4fb74d6beac19d2f45259
IMAGE:
NAME: csi-powermax
4 changes: 2 additions & 2 deletions check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ echo === Linting...
if [ -z ${GOLINT+x} ]; then
if [ "$REVPROXY" = true ] ; then
(command -v golint >/dev/null 2>&1 \
|| GO111MODULE=off go get -insecure -u golang.org/x/lint/golint) \
|| GO111MODULE=on go install golang.org/x/lint/golint@latest) \
&& golint --set_exit_status ./service/... ./csireverseproxy/...
else
(command -v golint >/dev/null 2>&1 \
|| GO111MODULE=off go get -insecure -u golang.org/x/lint/golint) \
|| GO111MODULE=on go install golang.org/x/lint/golint@latest) \
&& golint --set_exit_status ./service/...
fi
else
Expand Down
2 changes: 1 addition & 1 deletion csireverseproxy/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ VET_CSIREVPROXY_RETURN_CODE=$?

echo === Linting...
(command -v golint >/dev/null 2>&1 \
|| GO111MODULE=off go get -insecure -u golang.org/x/lint/golint) \
|| GO111MODULE=on go install golang.org/x/lint/golint@latest) \
&& golint --set_exit_status ./...
LINT_RETURN_CODE=$?
echo === Finished
Expand Down
47 changes: 44 additions & 3 deletions csireverseproxy/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module revproxy/v2

go 1.16
go 1.17

require (
github.com/dell/gopowermax v1.1.0
Expand All @@ -9,10 +9,51 @@ require (
github.com/kubernetes-csi/csi-lib-utils v0.9.1
github.com/sirupsen/logrus v1.6.0
github.com/spf13/viper v1.7.0
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d // indirect
golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect
gopkg.in/yaml.v2 v2.3.0
k8s.io/api v0.19.0
k8s.io/apimachinery v0.19.0
k8s.io/client-go v0.19.0
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/evanphx/json-patch v4.9.0+incompatible // indirect
github.com/go-logr/logr v0.2.0 // indirect
github.com/gogo/protobuf v1.3.1 // indirect
github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7 // indirect
github.com/golang/protobuf v1.4.2 // indirect
github.com/google/go-cmp v0.4.0 // indirect
github.com/google/gofuzz v1.1.0 // indirect
github.com/googleapis/gnostic v0.4.1 // indirect
github.com/hashicorp/golang-lru v0.5.1 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/imdario/mergo v0.3.5 // indirect
github.com/json-iterator/go v1.1.10 // indirect
github.com/konsorten/go-windows-terminal-sequences v1.0.3 // indirect
github.com/magiconair/properties v1.8.1 // indirect
github.com/mitchellh/mapstructure v1.1.2 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/pelletier/go-toml v1.2.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/spf13/afero v1.2.2 // indirect
github.com/spf13/cast v1.3.0 // indirect
github.com/spf13/jwalterweatherman v1.0.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 // indirect
golang.org/x/net v0.0.0-20200707034311-ab3426394381 // indirect
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d // indirect
golang.org/x/sys v0.0.0-20200622214017-ed371f2e16b4 // indirect
golang.org/x/text v0.3.3 // indirect
golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect
google.golang.org/appengine v1.6.5 // indirect
google.golang.org/protobuf v1.24.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/ini.v1 v1.51.0 // indirect
k8s.io/klog/v2 v2.2.0 // indirect
k8s.io/kube-openapi v0.0.0-20200805222855-6aeccd4b50c6 // indirect
k8s.io/utils v0.0.0-20200729134348-d5654de09c73 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.0.1 // indirect
sigs.k8s.io/yaml v1.2.0 // indirect
)
66 changes: 62 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/dell/csi-powermax/v2

go 1.16
go 1.17

replace github.com/coreos/go-systemd => github.com/coreos/go-systemd/v22 v22.0.0

Expand All @@ -17,14 +17,72 @@ require (
github.com/dell/gopowermax v1.6.0
github.com/fsnotify/fsnotify v1.4.7
github.com/golang/protobuf v1.5.2
github.com/google/gofuzz v1.2.0 // indirect
github.com/googleapis/gnostic v0.4.0 // indirect
github.com/kubernetes-csi/csi-lib-utils v0.7.0
github.com/sirupsen/logrus v1.6.0
github.com/spf13/viper v1.7.1
github.com/stretchr/testify v1.7.0
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f
google.golang.org/grpc v1.38.0
k8s.io/client-go v0.18.6
)

require (
github.com/akutz/gosync v0.1.0 // indirect
github.com/coreos/go-semver v0.3.0 // indirect
github.com/coreos/go-systemd/v22 v22.3.2 // indirect
github.com/cucumber/gherkin-go/v11 v11.0.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/godbus/dbus/v5 v5.0.4 // indirect
github.com/gofrs/uuid v3.2.0+incompatible // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef // indirect
github.com/golang/mock v1.3.1 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/googleapis/gnostic v0.4.0 // indirect
github.com/gorilla/mux v1.7.3 // indirect
github.com/hashicorp/go-immutable-radix v1.2.0 // indirect
github.com/hashicorp/go-memdb v1.2.1 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/imdario/mergo v0.3.5 // indirect
github.com/jinzhu/copier v0.2.4 // indirect
github.com/json-iterator/go v1.1.11 // indirect
github.com/konsorten/go-windows-terminal-sequences v1.0.3 // indirect
github.com/magiconair/properties v1.8.1 // indirect
github.com/mitchellh/mapstructure v1.1.2 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/pelletier/go-toml v1.2.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/spf13/afero v1.2.2 // indirect
github.com/spf13/cast v1.3.0 // indirect
github.com/spf13/jwalterweatherman v1.0.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
go.etcd.io/etcd/api/v3 v3.5.0 // indirect
go.etcd.io/etcd/client/pkg/v3 v3.5.0 // indirect
go.etcd.io/etcd/client/v3 v3.5.0 // indirect
go.uber.org/atomic v1.7.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.17.0 // indirect
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 // indirect
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 // indirect
google.golang.org/appengine v1.6.1 // indirect
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c // indirect
google.golang.org/protobuf v1.27.1 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/ini.v1 v1.51.0 // indirect
gopkg.in/yaml.v2 v2.3.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
k8s.io/api v0.18.6 // indirect
k8s.io/apimachinery v0.18.6 // indirect
k8s.io/klog v1.0.0 // indirect
k8s.io/kube-openapi v0.0.0-20200410145947-61e04a5be9a6 // indirect
k8s.io/utils v0.0.0-20200912215256-4140de9c8800 // indirect
sigs.k8s.io/structured-merge-diff/v3 v3.0.0 // indirect
sigs.k8s.io/yaml v1.2.0 // indirect
)
Loading

0 comments on commit 8cf345b

Please sign in to comment.