Skip to content

Commit

Permalink
chore: embed timezone data on all builds
Browse files Browse the repository at this point in the history
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
- golang/go@6d63a74
  • Loading branch information
lincolnthalles committed Mar 14, 2024
1 parent b323ebb commit 1432e3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .goreleaser-testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ builds:
- linux_s390x
flags: >-
-trimpath
-tags=timetzdata
ldflags: >-
-s
-w
Expand Down
1 change: 1 addition & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ builds:
goarch: "386"
flags: >-
-trimpath
-tags=timetzdata
ldflags: >-
-s
-w
Expand Down

0 comments on commit 1432e3d

Please sign in to comment.