Skip to content

Consider adding -tags timetzdata to Go builds by default. #69

Description

@jmalloc

See https://pkg.go.dev/time/tzdata

Doing so removes Go's reliance on the system timezone database. I am in favour of this for two main reasons:

  • Removes the need to bake this timezone data into docker images (allowing for Go builds directly from scratch)
  • Potentially improves build repeatability, as the database moves in lockstep with the Go version

It does have a 450KB size penalty, which is considerable, so it should definitely be possible to turn this off with a makefile variable.

Alternatively, if there were some way we could force Go to avoid the system database such that you have to explicitly turn this option on to use any timezone data, that could also work.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pkg:goRelates to the Go package

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions