Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#356 from cpanato/updates
Browse files Browse the repository at this point in the history
Updates on golang / golangci-lint and dependabot
  • Loading branch information
k8s-ci-robot authored Nov 24, 2023
2 parents 14341fd + 1598ff0 commit 4626c49
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
12 changes: 11 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,21 @@ updates:
- "area/dependency"
- "release-note-none"
- "ok-to-test"
groups:
all:
update-types:
- "minor"
- "patch"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
interval: "daily"
labels:
- "area/dependency"
- "release-note-none"
- "ok-to-test"
groups:
all:
update-types:
- "minor"
- "patch"
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: '1.20'
go-version: '1.21'
check-latest: true

- name: Run GoReleaser
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 sigs.k8s.io/e2e-framework

go 1.19
go 1.20

require (
github.com/vladimirvivien/gexe v0.2.0
Expand Down
2 changes: 1 addition & 1 deletion hack/verify-golangci-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set -o errexit
set -o nounset
set -o pipefail

VERSION=v1.53.3
VERSION=v1.55.2
URL_BASE=https://raw.githubusercontent.com/golangci/golangci-lint
URL=$URL_BASE/$VERSION/install.sh

Expand Down
4 changes: 2 additions & 2 deletions pkg/envconf/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,9 @@ func RandomName(prefix string, n int) string {
if len(prefix) >= n {
return prefix
}
rand.Seed(time.Now().UnixNano())
r := rand.New(rand.NewSource(time.Now().UnixNano()))
p := make([]byte, n)
rand.Read(p)
r.Read(p)
if prefix == "" {
return hex.EncodeToString(p)[:n]
}
Expand Down

0 comments on commit 4626c49

Please sign in to comment.