Skip to content

update to go1.21.1, default to GOTOOLCHAIN=local#46069

Merged
thaJeztah merged 2 commits intomoby:masterfrom
thaJeztah:update_to_go1.21
Sep 28, 2023
Merged

update to go1.21.1, default to GOTOOLCHAIN=local#46069
thaJeztah merged 2 commits intomoby:masterfrom
thaJeztah:update_to_go1.21

Conversation

@thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Jul 25, 2023

Related / depends on:

Updating to go 1.21 to see if things all work as expected

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@neersighted neersighted changed the title [do not merge] update to go1.21-rc3 [do not merge] update to go1.21.0 Aug 15, 2023
@neersighted neersighted force-pushed the update_to_go1.21 branch 3 times, most recently from 79cd2f9 to a93a895 Compare August 15, 2023 21:34
@thaJeztah thaJeztah force-pushed the update_to_go1.21 branch 4 times, most recently from 07aa3cf to 7555ca6 Compare August 25, 2023 10:43
@thaJeztah thaJeztah changed the title [do not merge] update to go1.21.0 update to go1.21.0 Aug 25, 2023
@thaJeztah thaJeztah force-pushed the update_to_go1.21 branch 2 times, most recently from dc21b1f to d0ad173 Compare August 26, 2023 20:03
@TBBle
Copy link
Contributor

TBBle commented Aug 27, 2023

For reference, this should also resolve the Docker occurrence of microsoft/Windows-Containers#213. microsoft/hcsshim#696 (comment) has records of me testing the Go-side fix with Docker.

I'm not sure off-hand whether enabling the containerd backend with or without containerd storage enabled would revivify that failure case, as I'm a long time away from remembering how the Docker graph-driver integrates with containerd. Basically, whoever calls ociwclayer.ExportLayerToTar, hcsshim.ExportLayer or hcsshim.NewLayerReader for the newly-created layer needs to be built with Go 1.21.

@thaJeztah thaJeztah changed the title update to go1.21.0 update to go1.21.1, default to GOTOOLCHAIN=local Sep 22, 2023
@thaJeztah thaJeztah marked this pull request as ready for review September 23, 2023 08:21
@thaJeztah thaJeztah requested a review from tianon as a code owner September 23, 2023 08:21
thaJeztah and others added 2 commits September 28, 2023 00:51
Related discussion in docker-library/golang#472

Signed-off-by: Sebastiaan van Stijn <[email protected]>
This required changes to the download-URL, as downloads are now provided
using the full version (including the `.0` patch version);

    curl -sI https://go.dev/dl/go1.21.windows-amd64.zip | grep 'location'
    location: https://dl.google.com/go/go1.21.windows-amd64.zip

    curl -sI https://dl.google.com/go/go1.21.windows-amd64.zip
    HTTP/2 404
    # ...

    curl -sI https://dl.google.com/go/go1.21.0.windows-amd64.zip
    HTTP/2 200
    # ...

Unfortunately this also means that the GO_VERSION can no longer be set to
versions lower than 1.21.0 (without additional changes), because older
versions do NOT provide the `.0` version, and Go 1.21.0 and up, no longer
provides URLs _without_ the `.0` version.

Co-authored-by: Bjorn Neergaard <[email protected]>
Signed-off-by: Bjorn Neergaard <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@tianon tianon mentioned this pull request Sep 28, 2023
@thaJeztah thaJeztah merged commit e2c23ed into moby:master Sep 28, 2023
@thaJeztah thaJeztah deleted the update_to_go1.21 branch September 28, 2023 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants