Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security] - upgrade golang to 1.21.2 for mitigating security risks #319

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading