Skip to content

Commit

Permalink
update to go 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
anjannath committed Sep 28, 2023
1 parent 71615e7 commit 6a2a099
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/choco-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
os:
- windows-2022
go:
- 1.19
- 1.20
steps:
- name: Check out repository code
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- macOS-latest
- macOS-11
go:
- 1.19
- 1.20
steps:
# Enable tmate debugging of manually-triggered workflows if the input option was provided
- name: Setup tmate session
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/make-check-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- windows-2019
- windows-2022
go:
- 1.19
- 1.20
steps:
- name: Check out repository code
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/make-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- ubuntu-latest
- ubuntu-20.04
go:
- 1.19
- 1.20
steps:
- name: Check out repository code
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/make-rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
os:
- ubuntu-latest
go:
- 1.19
- 1.20
steps:
- name: Check out repository code
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-chocolatey.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
os:
- windows-2022
go:
- 1.19
- 1.20
steps:
- name: Check out repository code
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- windows-2019
- windows-2022
go:
- 1.19
- 1.20
steps:
- name: Check out repository code
uses: actions/checkout@v3
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/crc-org/crc/v2

go 1.19
go 1.20

require (
github.com/AlecAivazis/survey/v2 v2.3.7
Expand Down
4 changes: 2 additions & 2 deletions pkg/crc/cluster/podman.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
)

func GenerateCockpitBearerToken() string {
rand.Seed(time.Now().UnixNano())
rng := rand.NewSource(time.Now().UnixNano())
const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"

b := make([]byte, 8)
for i := range b {
b[i] = letterBytes[rand.Int63()%int64(len(letterBytes))] // #nosec
b[i] = letterBytes[rng.Int63()%int64(len(letterBytes))] // #nosec
}
return base64.StdEncoding.EncodeToString(b)
}

0 comments on commit 6a2a099

Please sign in to comment.