Skip to content
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

dev: commit working tzdata to repo #12

Open
wants to merge 1 commit into
base: reinfer
Choose a base branch
from

Conversation

tommilligan
Copy link

@tommilligan tommilligan commented Feb 27, 2025

Ship a version of the tzdata files that our old haskell/duckling code is happy to open.

There was a discussion here: https://reinfer.slack.com/archives/C0APLNE23/p1740651201063489

I looked into pulling packages from older Ubuntu/Debian versions and found the implications/packaging constraints way more complicated than we needed it to be - this PR simply zips up a bunch of files we need, so we can unpack them in the right place.

We already rely on the source code from this repo, and the archive is <1MB. I'm happy to just inline what we know works here.

Added instructions in this PR of how to reproduce the stored data archive, but inlining for reference:

# Outputs .deb file in ./data directory
docker run --rm -it -v "$(pwd)/data:/mnt/data" ubuntu:20.04 /bin/bash -c 'apt-get update && apt-get download tzdata && mv /tzdata* /mnt/data'

@tommilligan tommilligan requested a review from dan-ri February 27, 2025 15:14
@tommilligan tommilligan self-assigned this Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant