-
Notifications
You must be signed in to change notification settings - Fork 594
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
Add 1.22 mux support #570
base: master
Are you sure you want to change the base?
Add 1.22 mux support #570
Conversation
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.
Thanks for this PR!
One tiny nitpick: I'm hesitant to bring the minimum up to 1.22 as goth is used by many downstreams, some of which still have much lower minimums. Would you be able to add in a polyfill for the new capabilities if the library is being used with a version of go that doesn't support them?
Meta: I do recognize the weirdness of asking for this as it means folks using older versions of go would be upgrading goth but not go (I've long given up on trying to understand some upgrade policies, and if an accommodation can be made without impact to security or significantly increasing maintenance burden, then I do try to at least investigate)
@techknowlogick I am open to ideas. I extracted out the |
Ok it looks like my change passes the tests; however, I still want to do some individual testing. Also I do not know how I feel about the |
This PR seems large; however, it fundamentally accomplishes 3 things.
1.22
ioutil
with their non-deprecatedio
andos
alternatives.This this change and without any other modifications, this change breaks backward compatibility for GO <1.22. This can be fixed however by creating a new
gothic.go | gothic_test.go
with//go:build go1.22
with these breaking changes. I am happy to make these compatibility changes but would love to get other's opinions first.