backport of commit c6ce966d9811384557d04329b89ad1b4b8ffc44c (#18688)

Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
This commit is contained in:
hc-github-team-nomad-core 2023-10-06 14:32:17 -05:00 committed by GitHub
parent 102e31bf3c
commit 451260fa4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

3
.changelog/18676.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
build: Add `timetzdata` Go build tag on Windows binaries to embed time zone data so periodic jobs are able to specify a time zone value on Windows environments
```

View File

@ -108,6 +108,7 @@ pkg/linux_%/nomad: CGO_ENABLED = 0
endif endif
pkg/windows_%/nomad: GO_OUT = $@.exe pkg/windows_%/nomad: GO_OUT = $@.exe
pkg/windows_%/nomad: GO_TAGS += timetzdata
# Define package targets for each of the build targets we actually have on this system # Define package targets for each of the build targets we actually have on this system
define makePackageTarget define makePackageTarget