-
Notifications
You must be signed in to change notification settings - Fork 546
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
golang: bump golang 1.19.12 -> 1.20.7 #6001
Conversation
Signed-off-by: Muhammad Falak R Wani <[email protected]>
Signed-off-by: Muhammad Falak R Wani <[email protected]>
Signed-off-by: Muhammad Falak R Wani <[email protected]>
Signed-off-by: Muhammad Falak R Wani <[email protected]>
Signed-off-by: Muhammad Falak R Wani <[email protected]>
Signed-off-by: Muhammad Falak R Wani <[email protected]>
Signed-off-by: Muhammad Falak R Wani <[email protected]>
Signed-off-by: Muhammad Falak R Wani <[email protected]>
Signed-off-by: Muhammad Falak R Wani <[email protected]>
Signed-off-by: Muhammad Falak R Wani <[email protected]>
Signed-off-by: Muhammad Falak R Wani <[email protected]>
Signed-off-by: Muhammad Falak R Wani <[email protected]>
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.
Awesome! This is a super important fix.
Changes are well described and look good to me. Thanks for patiently figuring out the root cause and testing it with all the dependent changes.
There is one comment that I did want clarification:
"If we build moby-enginne & moby-cli with 1.19.12 compiler, it still does not work."
I understand the golang upgrade to "permit invalid host header patch"
I am assuming the moby* upgrades still rely on this behaviour; what exactly do the moby* upgrades get us w.r.t. this fix?
The
The |
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.
Great work Falak, thanks!
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.
Signed-off-by: Muhammad Falak R Wani <[email protected]>
Signed-off-by: Muhammad Falak R Wani <[email protected]>
Signed-off-by: Muhammad Falak R Wani <[email protected]>
Bump following packages: - golang: 1.19.12 -> 1.20.7 - moby-cli: 20.10.24 -> 20.10.25 - moby-engine: 20.10.24 -> 20.10.25 - moby-containerd:1.6.18 -> 1.6.22 - moby-runc: 1.1.5 -> 1.1.9 This PR fixes docker `http: invalid Host header` error and bootstraps the go1.20 compiler with go1.19.12 instead of go1.4 Reference: https://go.dev/doc/go1.20#bootstrap Signed-off-by: Muhammad Falak R Wani <[email protected]>
Bump following packages: - golang: 1.19.12 -> 1.20.7 - moby-cli: 20.10.24 -> 20.10.25 - moby-engine: 20.10.24 -> 20.10.25 - moby-containerd:1.6.18 -> 1.6.22 - moby-runc: 1.1.5 -> 1.1.9 This PR fixes docker `http: invalid Host header` error and bootstraps the go1.20 compiler with go1.19.12 instead of go1.4 Reference: https://go.dev/doc/go1.20#bootstrap Signed-off-by: Muhammad Falak R Wani <[email protected]>
Merge Checklist
All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)
*-static
subpackages, etc.) have had theirRelease
tag incremented../cgmanifest.json
,./toolkit/scripts/toolchain/cgmanifest.json
,.github/workflows/cgmanifest.json
)./SPECS/LICENSES-AND-NOTICES/data/licenses.json
,./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md
,./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON
)*.signatures.json
filessudo make go-tidy-all
andsudo make go-test-coverage
passSummary
What does the PR accomplish, why was it needed?
This touches moby-* and golang:
Golang bumped to 1.20.7. Note that for go versions >= 1.20, the minimum compiler required is 1.17.
First the go1.4 bootstrap compiler is built.
The result of 1.4 compiler is used to build a 1.19.12 compiler.
The 1.19.12 compiler is used to build the actual 1.20.7 compiler.
Since go builds fairly quickly, the overhead of this is ~2-3 minutes on a reasonable machine.
moby-engine & moby-cli -> bumped to 20.10.25 (which contain the fix
http: invalid host header
.If we build moby-enginne & moby-cli with 1.19.12 compiler, it still does not work.
moby-runc bumped to 1.1.9
moby-containerd bumped to 1.6.22
Change Log
Does this affect the toolchain?
NO
Associated issues
Fixes:
http: invalid Host header
#5936Links to CVEs
Test Methodology
Pipeline Build:
PS: I used the new
containerized-build
feature for this and a big kudos to @neha170 for this feature/cc @christopherco