-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 go 1.15 for smaller binary #1303
Conversation
checking on failed test, so mark this one as draft |
LGTM |
please also check for performance regressions on large repos, e.g. on k8s |
I believe this will resolve #1318 |
962738e
to
3e4a868
Compare
Golang 1.15 comes to few improvements, one of them is to have smaller binary. This PR is to make golang 1.15 as default version in CI, I also update Docker based image to golang:1.15* as well. Two issues faced with golang 1.15: - Conflict between -v in `golangci-lint` and `go test`. Update to --verbose to avoid the same. - `nolintlint_unused.go` testdata is not matching regex. Correct by adding one space after // [1]: golang/go#40763 Signed-off-by: Tam Mach <[email protected]>
34bd373
to
12adeca
Compare
I wonder, shouldn't we also have the min Go version in |
For other reviewer, the failure in vulnerability scanner is not related to this PR. Will address seperately. |
|
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.
Looks good to me. Thank you
@sayboras Did you try to run it on huge repos, like k8s? Just to compare
Yes, I did. I ran for cilium and k8s projects (as I have these two in my machine), details can be found in PR description. |
Great, thank you @sayboras! |
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
The binary is much smaller from 37MB to 31MB
Performance test
Please refer to the commit message for more details.
Signed-off-by: Tam Mach [email protected]