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

feat: build with Go 1.21 #753

Merged
merged 3 commits into from
Sep 15, 2023
Merged

feat: build with Go 1.21 #753

merged 3 commits into from
Sep 15, 2023

Conversation

apricote
Copy link
Member

We previously used Go 1.19 which is EOL.

Also update golangci-lint to v1.54.2 and fix issues that showed up:

  • depguard previously did not run because we did not provide a configuration. The new version of golangci-lint includes an updated depguard that now defaults to denying all imports
  • Linters structcheck, deadcode & varcheck are deprecated by their upstream
  • rand.Seed() is unecessary since Go 1.20

@apricote apricote self-assigned this Sep 15, 2023
@apricote apricote changed the title feat: build with Golang 1.21 feat: build with Go 1.21 Sep 15, 2023
Test was flaky in Go 1.20+ where the seed was randomized on startup.

Shuffling the src array would lead to deviations in the result, as the
elements from src are added to dst in the order they appear.
@apricote apricote merged commit f68e079 into main Sep 15, 2023
4 checks passed
@apricote apricote deleted the go-1.21 branch September 15, 2023 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants