From 1432e3d2710dd801a63f372d87f9ad4fe725c5dd Mon Sep 17 00:00:00 2001 From: Lincoln Nogueira Date: Thu, 14 Mar 2024 09:37:20 -0300 Subject: [PATCH] chore: embed timezone data on all builds Fixes memo count always loading due to "invalid timezone location" API error on Windows and other systems without timezone data available. This will increase binaries by about 800 Kb, but this ensures the server works in any environment. References: - https://pkg.go.dev/time#LoadLocation - https://github.com/golang/go/commit/6d63a74f8e8be044d672fc594c0d356eb911f14b --- .goreleaser-testing.yaml | 1 + .goreleaser.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/.goreleaser-testing.yaml b/.goreleaser-testing.yaml index 561c9f12..91f04590 100644 --- a/.goreleaser-testing.yaml +++ b/.goreleaser-testing.yaml @@ -23,6 +23,7 @@ builds: - linux_s390x flags: >- -trimpath + -tags=timetzdata ldflags: >- -s -w diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 8b69a9b8..5531c43d 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -42,6 +42,7 @@ builds: goarch: "386" flags: >- -trimpath + -tags=timetzdata ldflags: >- -s -w