-
Notifications
You must be signed in to change notification settings - Fork 4
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
ZDM Util: upgrade Go version and some of its dependencies #70
Conversation
zdm-util/go.mod
Outdated
@@ -1,20 +1,35 @@ | |||
module zdm-proxy-automation/zdm-util | |||
|
|||
go 1.16 | |||
go 1.21.7 |
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.
Are we sure the go sdk being installed supports this?
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.
I forgot that we have a workflow that can build from a commit, I'll do that to verify that the executable can be built.
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.
The executable could be built - I had to use 1.21 instead of 1.21.7 and fix two dependencies that were missing from go.sum and therefore showed as unnecessary in go.mod. The 1.21 version in itself did not cause issues, but it was useful to run the workflow from the commit.
This PR only affects the ZDM Util.
The changes include an upgrade of the Go version from 1.16 to 1.21.7, and upgrading several dependencies that were outdated. In particular, the runc transitive dependency has been upgraded from 1.1.4 to 1.1.12 to address a security vulnerability.
Additionally, there is a fix for a small compilation error in a test which had gone unnoticed since the changes to make the ZDM Util OS-agnostic.
The automated tests are passing and a manual smoke test was also successful.