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

[fuchsia] Adds new tzdata dir, explains all dirs #278

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

filmil
Copy link
Member

@filmil filmil commented Oct 11, 2023

Added /config/tzdata as a canonical path in the
Fuchsia component's namespace.

This is from:
https://fuchsia.dev/fuchsia-src/concepts/process/namespaces#typical_directory_structure

Each directory prefix entry in the list of prefixes that Fuchsia looks for timezone data files is now
explained with a comment.

Added `/config/tzdata` as a canonical path in the
Fuchsia component's namespace.

This is from:
https://fuchsia.dev/fuchsia-src/concepts/process/namespaces#typical_directory_structure

Each directory prefix entry in the list of prefixes
that Fuchsia looks for timezone data files is now
explained with a comment.
Comment on lines +537 to +546
// The tzdata from `config-data`.
"/config/data/tzdata/",
// The tzdata bundled in the component's package.
"/pkg/data/tzdata/",
// General data storage.
"/data/tzdata/",
// The recommended path for routed-in tzdata files.
// See for details:
// https://fuchsia.dev/fuchsia-src/concepts/process/namespaces?hl=en#typical_directory_structure
"/config/tzdata/",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just checking that these are indeed in "descending order of preference". Naively, it seems strange that "/config/data/tzdata/" and "/config/tzdata/" are on opposite ends of the spectrum.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a way yes, this is the correct ordering. /config/data/... is deprecated, and /data/tzdata may be present in some older components, and /pkg/data should probably take precedence over /config/tzdata if the owners so wants.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the way you describe things, it sounds like the ordering should be:

  1. /pkg/data/tzdata/
  2. /config/tzdata/
  3. /config/data/tzdata/
  4. /data/tzdata

But, it's your choice.

@devbww devbww merged commit b6d7a85 into google:master Oct 11, 2023
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.

2 participants