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

all: Update Go Module to Go 1.20 #1246

Merged
merged 2 commits into from
Sep 6, 2023
Merged

all: Update Go Module to Go 1.20 #1246

merged 2 commits into from
Sep 6, 2023

Conversation

bflad
Copy link
Member

@bflad bflad commented Sep 6, 2023

Closes #1245

@bflad bflad added enhancement New feature or request dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Sep 6, 2023
@bflad bflad added this to the v2.29.0 milestone Sep 6, 2023
@bflad bflad requested a review from a team as a code owner September 6, 2023 10:14
Reference: https://pkg.go.dev/math/rand#Seed

Previously from `golangci-lint` after Go 1.20 upgrade:

```
helper/acctest/random.go:24:2: SA1019: rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator. (staticcheck)
	rand.Seed(time.Now().UTC().UnixNano())
	^
```
Copy link
Contributor

@bendbennett bendbennett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@bflad bflad merged commit 80fb516 into main Sep 6, 2023
8 checks passed
@bflad bflad deleted the bflad/go120upgrade branch September 6, 2023 15:26
@github-actions
Copy link

github-actions bot commented Oct 7, 2023

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Go Module to Go 1.20 Minimum
2 participants