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

How should we handle imports of time/tzdata by dependencies? #32688

Open
djaglowski opened this issue Apr 25, 2024 · 1 comment
Open

How should we handle imports of time/tzdata by dependencies? #32688

djaglowski opened this issue Apr 25, 2024 · 1 comment
Labels
discussion needed Community discussion needed needs triage New item requiring triage

Comments

@djaglowski
Copy link
Member

Component(s)

No response

Describe the issue you're reporting

This relates to discussion open-telemetry/opentelemetry-collector#9991, in which there seems to be consensus that we will follow the official guidance from time/tzdata which states: This package should normally be imported by a program's main package, not by a library. Libraries normally shouldn't decide whether to include the timezone database in a program.

As noted in #32506, we are currently pulling in a dependency in one of our components which imports the database. This effectively makes the decision for all of contrib that it will be included in the distro. I believe we should discourage this somehow.

Should we make a policy that components which import the database cannot be included in contrib?

@djaglowski djaglowski added the needs triage New item requiring triage label Apr 25, 2024
@crobert-1 crobert-1 added the discussion needed Community discussion needed label Apr 25, 2024
Copy link
Contributor

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion needed Community discussion needed needs triage New item requiring triage
Projects
None yet
Development

No branches or pull requests

2 participants