-
Notifications
You must be signed in to change notification settings - Fork 309
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
Upgrade to go 1.23 #466
base: master
Are you sure you want to change the base?
Upgrade to go 1.23 #466
Conversation
Hey @thecsw, thanks for this! Off-hand, though, I'm hesitant to want to bump this to Go |
Sure thing and totally valid! With this bump, it would require, at least on major systems, to run at least Big Sur for Mac and windows 10 (some new ports for bsd/etc. introduced)—makes sense for compat We could possibly leave this open/archived for whenever time comes to upgrade to go1.23, at least |
After the discussion on zmap/zdns#495, I think we can go ahead with this! |
@phillip-stephens wonderful—I noticed there are some new test failures since the last good head—I'll review those and make changes to get this through! |
Signed-off-by: Sandy <[email protected]>
Okay, rebased onto the upstream's master and should be good to go |
Following upon #461, updating the go version to latest, the 1.23 release gives us many new improvements in both the compiler land and tooling land to utilize:
min, max
, so we don't have to constantly implement our own, see:utility.go:129
,modules/mssql/connection.go:749
,modules/oracle/types_test.go:455
,lib/ssh/channel.go:134
How to Test
CI/CD involved should handle it. As Go team noted in all release notes since 1.20 (current version in this project) to now,
Compiling and running the program yields no issues.
Notes & Caveats
Only one "breaking" compile-time issue found in
modules/amqp091/scanner.go:250
, whereChannelMax
was expecting anint
but got anuint16
. Casting here is safe as this is a type promotion with no requirements for this variable to be exactly 16 bits.Issue Tracking
Add a link to the relevant GitHub issue(s) if the pull request resolves it.