-
Notifications
You must be signed in to change notification settings - Fork 122
Apply go modernize #351
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
base: master
Are you sure you want to change the base?
Apply go modernize #351
Conversation
3f30fca to
214bb2a
Compare
go.mod
Outdated
| module github.com/pion/rtp | ||
|
|
||
| go 1.21 | ||
| go 1.22 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't bump go version now :(
Maybe we should do it after 4.3.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I was wondering about that. Marking as blocked for now.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #351 +/- ##
=======================================
Coverage 82.58% 82.58%
=======================================
Files 28 28
Lines 3428 3428
=======================================
Hits 2831 2831
Misses 427 427
Partials 170 170
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
214bb2a to
1fca462
Compare
This allows for ranging over constant and testing.Loop requires go1.24 or later.
1fca462 to
d98a350
Compare
|
Nice changes @tmatth Worth adding to ci? Could we use an older version of the tool that doesn't to an upgrade? |
|
@Sean-Der we can use it with golangci-lint, but last time i checked, it cased some conflicts with some linters (gosec?), also i'll check how to set it so it doesn't try to force us to update Go version, I'm going to check again after the fact we upgraded golangci-lint to 2.6. |
|
Oh that's nice @JoTurk it's pretty wild how much 'Good Go Code' has changed. Especially in pion/turn it feels like a time portal :) |
Applied with
N.B. ranging over constants requires go >= 1.22 and testing.Loop requires go1.24 or later.