Skip to content

The 'GOARCH'/'GOHOSTARCH' changed from 'amd64' to '386' in golang:1.21-alpine3.18 #481

Closed
@GaoJianAllen

Description

@GaoJianAllen

I am very happy to see go1.21 released yesterday!
I can't wait to upgrade my base image which is golang:1.21-alpine3.18.
However, something wrong, my CICD broken.

I checked my code and found the GOARCH changed from 'amd64' to '386'.
I read golang release notes and I can't find the reason for the change.

➜ ~ docker run -it golang:1.21-alpine3.18
/go # go env GOHOSTARCH
386
/go # go env GOARCH
386
/go #

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions