-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
beats: import time/tzdata explicitly in main #40420
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
In order to handle timezones we import Go's own timezone database. This import is done indirectly by libbeat/common/cfgtype. We trust that this package will end up being required by the dependency chain of every beats main binary. To ensure that the binaries continue to handle timezones correctly and to avoid any unexpected issues, let's import time/tzdata explicitly in the main packages. See elastic#40326.
68e92c1
to
5459933
Compare
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
Pinging @elastic/sec-linux-platform (Team:Security-Linux Platform) |
Pinging @elastic/sec-deployment-and-devices (Team:Security-Deployment and Devices) |
Pinging @elastic/obs-ds-hosted-services (Team:obs-ds-hosted-services) |
Pinging @elastic/sec-windows-platform (Team:Security-Windows Platform) |
/test |
/test |
run docs-build |
/test |
run docs-build |
@graphaelli could you please find someone to review here as @bturquet is currently out? |
In order to handle timezones we import Go's own timezone database. This import is done indirectly by libbeat/common/cfgtype. We trust that this package will end up being required by the dependency chain of every beats main binary. To ensure that the binaries continue to handle timezones correctly and to avoid any unexpected issues, let's import time/tzdata explicitly in the main packages. See elastic#40326. Co-authored-by: Pierre HILBERT <[email protected]>
Proposed commit message
In order to handle timezones we import Go's own timezone database. This
import is done indirectly by libbeat/common/cfgtype. We trust that this
package will end up being required by the dependency chain of every beats
main binary.
To ensure that the binaries continue to handle timezones correctly even if the
indirect import is removed let's import time/tzdata explicitly in the main packages.
See discussion at #40326.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Disruptive User Impact
Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs