-
Notifications
You must be signed in to change notification settings - Fork 370
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
Update Go to v1.19 #4106
Update Go to v1.19 #4106
Conversation
856679b
to
f64c917
Compare
f64c917
to
05b84b8
Compare
Codecov Report
@@ Coverage Diff @@
## main #4106 +/- ##
==========================================
+ Coverage 66.20% 66.51% +0.30%
==========================================
Files 306 304 -2
Lines 46663 47248 +585
==========================================
+ Hits 30894 31426 +532
- Misses 13366 13381 +15
- Partials 2403 2441 +38
*This pull request uses carry forward flags. Click here to find out more.
|
1aeea9c
to
1927878
Compare
Depends on #4109 |
1927878
to
6246b85
Compare
b992d75
to
44ac663
Compare
Most notables changes: * we remove all uses of the io/ioutil package, which has been deprecated * gofmt now reformats doc comments (e.g., lists inside comment blocks), which is why some comments have been reformatted automatically * the codegen image has been updated to kubernetes-1.24.0-build.1 to include the updated version of Go. "go get: no longer builds or installs packages in module-aware mode, so "go get" has been replaced with "go install" in the Dockerfile. * we now use the version of Go from the root go.mod file when setting up Go in Github workflows. This will reduce the number of changes we have to do in the future when updating Go. * running "go mod tidy" with the updated Go version seems to have removed some stale entries from go.sum files. * we need to disable cgo whenever building the Octant plugin on Linux. Not quite sure how this is related to the Go version update: maybe some small change in "go build" to determine when to enable / disable cgo. Fixes antrea-io#4105 Signed-off-by: Antonin Bas <[email protected]>
Signed-off-by: Antonin Bas <[email protected]>
44ac663
to
fff6009
Compare
/test-all |
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.
LGTM, one question
@@ -274,7 +274,8 @@ func executeTests(k8s *Kubernetes, testList []*TestCase) []*TestCase { | |||
return modifiedTestList | |||
} | |||
|
|||
/** | |||
/* | |||
* |
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.
out of curiosity, does the second "*" mean anything?
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.
it doesn't mean anything. gofmt
now does some comment reformatting, and this file was updated automatically. I am ignoring this change since this whole folder (hack/netpol
) should be removed pretty soon.
/test-e2e |
@@ -1 +1 @@ | |||
1.17 | |||
1.19 |
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.
Not related to this PR, but I am thinking we may use the same version from go.mod instead of this file in the future?
/test-all |
/test-e2e |
* Update Go to v1.19 Most notables changes: * we remove all uses of the io/ioutil package, which has been deprecated * gofmt now reformats doc comments (e.g., lists inside comment blocks), which is why some comments have been reformatted automatically * the codegen image has been updated to kubernetes-1.24.0-build.1 to include the updated version of Go. "go get: no longer builds or installs packages in module-aware mode, so "go get" has been replaced with "go install" in the Dockerfile. * we now use the version of Go from the root go.mod file when setting up Go in Github workflows. This will reduce the number of changes we have to do in the future when updating Go. * running "go mod tidy" with the updated Go version seems to have removed some stale entries from go.sum files. * we need to disable cgo whenever building the Octant plugin on Linux. Not quite sure how this is related to the Go version update: maybe some small change in "go build" to determine when to enable / disable cgo. Fixes antrea-io#4105 Signed-off-by: Antonin Bas <[email protected]> * Fix docker_update_base_windows.yml Signed-off-by: Antonin Bas <[email protected]>
Most notables changes:
which is why some comments have been reformatted automatically
include the updated version of Go. "go get: no longer builds or
installs packages in module-aware mode, so "go get" has been replaced
with "go install" in the Dockerfile.
Go in Github workflows. This will reduce the number of changes we have
to do in the future when updating Go.
removed some stale entries from go.sum files.
Linux. Not quite sure how this is related to the Go version update:
maybe some small change in "go build" to determine when to enable /
disable cgo.
Fixes #4105
Signed-off-by: Antonin Bas [email protected]