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

Fix package integration hooks logic #6

Merged
merged 1 commit into from
Jan 12, 2024
Merged

Conversation

MichaelHatherly
Copy link
Collaborator

Only attempt to rerun hooks for packages that have actually already been loaded, otherwise version checks will fail since the package isn't actually loaded. Cache package version as an optimisation.

Copy link

codecov bot commented Jan 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e9a6709) 84.03% compared to head (3cb8c37) 84.31%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main       #6      +/-   ##
==========================================
+ Coverage   84.03%   84.31%   +0.28%     
==========================================
  Files           5        5              
  Lines         357      357              
==========================================
+ Hits          300      301       +1     
+ Misses         57       56       -1     

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

Only attempt to rerun hooks for packages that have actually already been loaded, otherwise version checks will fail since the package isn't actually loaded. Cache package version as an optimisation.
@MichaelHatherly MichaelHatherly marked this pull request as ready for review January 12, 2024 10:33
@MichaelHatherly MichaelHatherly merged commit ae08179 into main Jan 12, 2024
10 checks passed
@MichaelHatherly MichaelHatherly deleted the mh/pkg-load-hooks-fix branch January 12, 2024 11:09
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