Skip to content

Commit

Permalink
Merge pull request #585 from k1LoW/timetzdata
Browse files Browse the repository at this point in the history
Embed tzdata
  • Loading branch information
k1LoW committed May 16, 2024
2 parents 5771e15 + b5dbcb6 commit 10de07c
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/git-semv@v1.2.0
Expand Down

0 comments on commit 10de07c

Please sign in to comment.