Skip to content

Sourcegenerator only run when not referenced#5

Merged
MarkCiliaVincenti merged 3 commits intoMarkCiliaVincenti:masterfrom
CptWesley:sourcegenerator-only-run-when-not-referenced
Dec 14, 2024
Merged

Sourcegenerator only run when not referenced#5
MarkCiliaVincenti merged 3 commits intoMarkCiliaVincenti:masterfrom
CptWesley:sourcegenerator-only-run-when-not-referenced

Conversation

@CptWesley
Copy link
Contributor

Closes #4

Changes

  • Source generators no longer run if Backport.System.Threading.Lock is referenced during compilation.

Notes

  • I didn't bump the versions yet, since I'm not sure what your preferred way of working is in that regard.

@codecov
Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100%. Comparing base (55a7b16) to head (c34503a).
Report is 4 commits behind head on master.

Additional details and impacted files
@@          Coverage Diff          @@
##           master     #5   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           3      3           
  Lines          19     19           
=====================================
  Hits           19     19           

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

@MarkCiliaVincenti
Copy link
Owner

LGTM code wise, I will make some experiments and see if it works, thanks

@MarkCiliaVincenti MarkCiliaVincenti merged commit 5c98a5b into MarkCiliaVincenti:master Dec 14, 2024
4 checks passed
@MarkCiliaVincenti
Copy link
Owner

Bravo! Really awesome trick!

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.

Backport.System.Threading.Lock build warnings

2 participants