Skip to content

Commit

Permalink
Embed tzdata
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed May 16, 2024
1 parent 00587eb commit b5dbcb6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .goreleaser/darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ before:
builds:
-
id: tbls-darwin
flags:
- -tags
- timetzdata
ldflags:
- -s -w -X github.com/k1LoW/tbls.version={{.Version}} -X github.com/k1LoW/tbls.commit={{.FullCommit}} -X github.com/k1LoW/tbls.date={{.Date}} -X github.com/k1LoW/tbls/version.Version={{.Version}}
env:
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ builds:
flags:
- -a
- -tags
- netgo
- netgo,timetzdata
- -installsuffix
- netgo
ldflags:
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ builds:
flags:
- -a
- -tags
- netgo
- netgo,timetzdata
- -installsuffix
- netgo
ldflags:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ lint:
golangci-lint run ./...

build:
go build -ldflags="$(BUILD_LDFLAGS)"
go build -tags timetzdata -ldflags="$(BUILD_LDFLAGS)"

depsdev:
go install github.com/linyows/git-semv/cmd/[email protected]
Expand Down

0 comments on commit b5dbcb6

Please sign in to comment.