Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

⬆️ Bump Go 1.19 + GoFrame 2.1.4 + set GOAMD64=v3 - #7599

Merged
NateBrady23 merged 6 commits into
TechEmpower:masterfrom
0uep:goframe
Sep 19, 2022
Merged

NateBrady23 merged 6 commits into
TechEmpower:masterfrom
0uep:goframe

Conversation

@0uep

@0uep 0uep commented Sep 19, 2022

Copy link
Copy Markdown
Contributor
  • Bump GoFrame from v2.0.0-rc3 to v2.1.4
  • Upgrade other dependencies according to GoFrame-2.1.4
  • Bump Go from 1.17 to 1.19: Each Go version improves the performance.
  • Set GOAMD64=v3 to enable the following instructions set: CMPXCHG16B, LAHF, SAHF, POPCNT, SSE3, SSE4.1, SSE4.2, SSSE3, AVX, AVX2, BMI1, BMI2, F16C, FMA, LZCNT, MOVBE, OSXSAVE. The default value is GOAMD64=v1. See https://github.com/golang/go/wiki/MinimumRequirements#amd64
  • Replace the RUN go get -u github.com/valyala/quicktemplate/qtc (Dockerfile) by //go:generate go run github.com/valyala/quicktemplate/qtc in the source code. That way Go-1.19 is aware of the dependency on qtc and adds automatically it in the go.mod with a fixed version to reproduce the same go generate.
  • Replace the RUN easyjson -pkg by //go:generate go run github.com/mailru/easyjson/... -all -disable_members_unescape ${GOFILE} using -disable_members_unescape for better performance.
  • Rename module name from goframe to goframe/app. This change sets the default executable name to "app". We may also drop the -o app in the Dockerfile.

Note: I insert docker.io/ in the FROM docker.io/golang:1.19 statement to allow podman and buildah to also build the container images.

@0uep 0uep changed the title ⬆️ Bump Go 1.19 + GoFrame 2.1.4 + set GOAMD64=v3 ⬆️ Bump Go 1.19 + GoFrame 2.1.4 + set GOAMD64=v3 Sep 19, 2022
@NateBrady23
NateBrady23 merged commit a07f6da into TechEmpower:master Sep 19, 2022
@0uep 0uep changed the title ⬆️ Bump Go 1.19 + GoFrame 2.1.4 + set GOAMD64=v3 ⬆️ Bump Go 1.19 + GoFrame 2.1.4 + set GOAMD64=v3 Sep 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants