Skip to content

Commit

Permalink
[Security] - upgrade golang to 1.21.2 for mitigating security risks
Browse files Browse the repository at this point in the history
Signed-off-by: kesavan thiruvenkadasamy <[email protected]>
  • Loading branch information
px-kesavan committed Nov 6, 2023
1 parent a866ec7 commit fdf611b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ env:
global:
- GO111MODULE=on
go:
- 1.20
- 1.21.2
script:
- |
if [ -n "${TRAVIS_TAG}" ]; then
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ BASE_DIR := $(shell git rev-parse --show-toplevel)
GIT_SHA := $(shell git rev-parse --short HEAD)
BIN := $(BASE_DIR)/bin

DOCK_BUILD_CNT := golang:1.20.5
DOCK_BUILD_CNT := golang:1.21.2

DOCKER_IMAGE_REPO?=portworx
DOCKER_IMAGE_NAME?=kdmp
Expand Down Expand Up @@ -82,6 +82,7 @@ staticcheck:
docker run --rm -v $(shell pwd):/go/src/github.com/portworx/kdmp $(DOCK_BUILD_CNT) \
/bin/bash -c "cd /go/src/github.com/portworx/kdmp; \
go install honnef.co/go/tools/cmd/[email protected]; \
git config --global --add safe.directory /go/src/github.com/portworx/kdmp; \
staticcheck $(PKGS); \
staticcheck -tags unittest $(PKGS)"

Expand All @@ -90,6 +91,7 @@ errcheck:
docker run --rm -v $(shell pwd):/go/src/github.com/portworx/kdmp $(DOCK_BUILD_CNT) \
/bin/bash -c "cd /go/src/github.com/portworx/kdmp; \
GO111MODULE=off go get -u github.com/kisielk/errcheck; \
git config --global --add safe.directory /go/src/github.com/portworx/kdmp; \
errcheck -ignoregenerated -ignorepkg fmt -verbose -blank $(PKGS); \
errcheck -ignoregenerated -ignorepkg fmt -verbose -blank -tags unittest $(PKGS)"

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/portworx/kdmp

go 1.20
go 1.21

require (
github.com/aquilax/truncate v1.0.0
Expand Down

0 comments on commit fdf611b

Please sign in to comment.