Skip to content

Conversation

@HannesWell
Copy link
Member

If a dependency is optional then the code must be ready to handle the absence. And if it cannot be absent, then the requirement should be mandatory. If the bundle itself can work without that requirement but some other bundle needs the first bundle to work with that optional dependency, then that other bundle has to declare a corresponding mandatory requirement.
On the other hand, considering optional dependencies can drag bundles into the runtime that are not desired and even can cause harm. And because it's not possible to remove undesired bundles with some other configuration, it's better to start with less and explicitly add what's a missing mandatory requirement.

See for example #2092 (comment) ff.

If a dependency is optional then the code must be ready to handle the
absence. And if it cannot be absent, then the requirement should be
mandatory. If the bundle itself can work without that requirement but
some other bundle needs the first bundle to work with that optional
dependency, then that other bundle has to declare a corresponding
mandatory requirement.
On the other hand, considering optional dependencies can drag bundles
into the runtime that are not desired and even can cause harm. And
because it's not possible to remove undesired bundles with some other
configuration, it's better to start with less and explicitly add what's
a missing mandatory requirement.
@github-actions
Copy link

github-actions bot commented Nov 5, 2025

Test Results

  623 files  ±0    623 suites  ±0   47m 45s ⏱️ + 3m 35s
3 634 tests ±0  3 579 ✅ ±0   54 💤 ±0  1 ❌ ±0 
8 185 runs  ±0  8 045 ✅ ±0  139 💤 ±0  1 ❌ ±0 

For more details on these failures, see this check.

Results for commit 705cfef. ± Comparison against base commit 4fe820b.

Copy link
Contributor

@laeubi laeubi left a comment

Choose a reason for hiding this comment

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

I don't think this is good and it was chosen by purpose.

The default should "just work" and disable it because we have bad bundles is not really a viable option. Of course people can choose to use other defaults if they feel more comfortable with it.

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