Skip to content

build(plugins): Only compile against a plugin API - #12116

Draft
sschuberth wants to merge 1 commit into
mainfrom
plugin-api-compile-only
Draft

sschuberth wants to merge 1 commit into
mainfrom
plugin-api-compile-only

Conversation

@sschuberth

Copy link
Copy Markdown
Member

A plugin should only compile against the API for its plugin type to avoid the plugin API itself being a dependency of the plugin, which would cause problems when bundling the dependencies of plugins and using multiple plugins, as the plugin API would duplicate then.

@codecov

codecov Bot commented Jul 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.21%. Comparing base (4be1cb6) to head (9c38bf9).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #12116      +/-   ##
============================================
+ Coverage     58.87%   59.21%   +0.34%     
- Complexity     1841     1897      +56     
============================================
  Files           362      363       +1     
  Lines         13657    13950     +293     
  Branches       1414     1487      +73     
============================================
+ Hits           8041     8261     +220     
- Misses         5106     5172      +66     
- Partials        510      517       +7     
Flag Coverage Δ
funTest-external-tools 15.20% <ø> (+0.58%) ⬆️
test-ubuntu-26.04 43.06% <ø> (-0.21%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
A plugin should only compile against the API for its plugin type to
avoid the plugin API itself being a dependency of the plugin, which would
cause problems when bundling the dependencies of plugins and using
multiple plugins, as the plugin API would duplicate then.

Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.io>
@sschuberth
sschuberth force-pushed the plugin-api-compile-only branch from 8c00592 to 9c38bf9 Compare August 18, 2026 12:08

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant