Skip to content

Commit

Permalink
bump release 1.4 to go 1.20.8
Browse files Browse the repository at this point in the history
bump min go to 1.20

add no-lint for SA1019 (rand.Seed deprecation in go 1.20)
  • Loading branch information
cahillsf committed Sep 14, 2023
1 parent fb50141 commit 6b7d2b2
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ SHELL:=/usr/bin/env bash
#
# Go.
#
GO_VERSION ?= 1.19.13
GO_VERSION ?= 1.20.8
GO_CONTAINER_IMAGE ?= docker.io/library/golang:$(GO_VERSION)

# Use GOPROXY environment variable if set
Expand Down
2 changes: 1 addition & 1 deletion Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def load_provider_tiltfiles():

tilt_helper_dockerfile_header = """
# Tilt image
FROM golang:1.19.13 as tilt-helper
FROM golang:1.20.8 as tilt-helper
# Support live reloading with Tilt
RUN go install github.com/go-delve/delve/cmd/dlv@v1.9.1
RUN wget --output-document /restart.sh --quiet https://raw.githubusercontent.com/tilt-dev/rerun-process-wrapper/master/restart.sh && \
Expand Down
1 change: 1 addition & 0 deletions bootstrap/kubeadm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ func InitFlags(fs *pflag.FlagSet) {
}

func main() {
//nolint:staticcheck
rand.Seed(time.Now().UnixNano())

InitFlags(pflag.CommandLine)
Expand Down
1 change: 1 addition & 0 deletions controlplane/kubeadm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ func InitFlags(fs *pflag.FlagSet) {
feature.MutableGates.AddFlag(fs)
}
func main() {
//nolint:staticcheck
rand.Seed(time.Now().UnixNano())

InitFlags(pflag.CommandLine)
Expand Down
2 changes: 1 addition & 1 deletion hack/ensure-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ EOF
local go_version
IFS=" " read -ra go_version <<< "$(go version)"
local minimum_go_version
minimum_go_version=go1.19
minimum_go_version=go1.20
if [[ "${minimum_go_version}" != $(echo -e "${minimum_go_version}\n${go_version[2]}" | sort -s -t. -k 1,1 -k 2,2n -k 3,3n | head -n1) && "${go_version[2]}" != "devel" ]]; then
cat <<EOF
Detected go version: ${go_version[*]}.
Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ func InitFlags(fs *pflag.FlagSet) {
}

func main() {
//nolint:staticcheck
rand.Seed(time.Now().UnixNano())

InitFlags(pflag.CommandLine)
Expand Down
1 change: 1 addition & 0 deletions test/infrastructure/docker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ func initFlags(fs *pflag.FlagSet) {
}

func main() {
//nolint:staticcheck
rand.Seed(time.Now().UnixNano())
if _, err := os.ReadDir("/tmp/"); err != nil {
setupLog.Error(err, "unable to start manager")
Expand Down

0 comments on commit 6b7d2b2

Please sign in to comment.