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

Extend package discovery to support passive mechanisms #685

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

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented Feb 26, 2025

The current implementation of package discovery follows one of two paths:

  1. None of the extensions were specifically enabled via a command line argument, in which case all of the extensions are engaged.
  2. Some subset of the extensions were given arguments, in which case the others are ignored and their discover() methods are not called.

This change adds support for discovery extensions which do not expose command line arguments and cannot therefore be specifically enabled, and ensures that those extensions are always engaged.

This is a non-breaking enhancement of the PackageDiscoveryExtensionPoint interface.

The current implementation of package discovery follows one of two
paths:
1. None of the extensions were specifically enabled via a command line
   argument, in which case all of the extensions are engaged.
2. Some subset of the extensions were given arguments, in which case the
   others are ignored and their discover() methods are not called.

This change adds support for discovery extensions which do not expose
command line arguments and cannot therefore be specifically enabled, and
ensures that those extensions are always engaged.

This is a non-breaking enhancement of the PackageDiscoveryExtensionPoint
interface.
@cottsay cottsay added the enhancement New feature or request label Feb 26, 2025
@cottsay cottsay self-assigned this Feb 26, 2025
Copy link

codecov bot commented Feb 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.30%. Comparing base (a74fa97) to head (37bb393).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #685      +/-   ##
==========================================
+ Coverage   87.28%   87.30%   +0.01%     
==========================================
  Files          68       68              
  Lines        3949     3953       +4     
  Branches      760      761       +1     
==========================================
+ Hits         3447     3451       +4     
  Misses        396      396              
  Partials      106      106              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

1 participant