Skip to content

Add CompatibilitySuppressions.xml for the Polyfill 11.4.5 shim drift [patch] - #91

Open
matt-edmondson wants to merge 1 commit into
mainfrom
fix/90-polyfill-compat-suppressions
Open

matt-edmondson wants to merge 1 commit into
mainfrom
fix/90-polyfill-compat-suppressions

Conversation

@matt-edmondson

Copy link
Copy Markdown
Contributor

Fixes #90

What

This PR adds DelegateTransform/CompatibilitySuppressions.xml with 11 suppressions (CP0014 ×10, CP0015 ×1). Polyfill 11.4.5 changed nullable and compiler-generated attributes on its embedded ExperimentalAttribute and DefaultInterpolatedStringHandler shims. Package validation therefore fails between the net8.0, net9.0 and net10.0 assets, and every pack on main has failed since 2026-10-13. None of the suppressed diagnostics touch DelegateTransform's own API.

How it was made

dotnet pack DelegateTransform/DelegateTransform.csproj -c Release -p:ApiCompatGenerateSuppressionFile=true on SDK 10.0.403, the same SDK as the Windows CI runner.

Verification

  • On main, without the file: dotnet pack -c Release fails with the same 11 CP0014/CP0015 errors as CI run 41251357978. That run logs 14 Error(s): the 11 diagnostics plus 3 summary lines. The issue's "30 × CP0014 and 3 × CP0015" counts each line twice in the log.
  • With the file: dotnet pack -c Release succeeds, with validation on and generation off.
  • dotnet test: 13/13 passed.

The SDK rewrites .gitignore during every build (the Unity Packages/ exception). That change is unrelated, so this PR leaves it out.


Generated by Claude Code

…[patch]

Polyfill 11.4.5 changed the nullable and compiler-generated attributes on its
embedded ExperimentalAttribute and DefaultInterpolatedStringHandler shims, so
package validation reported CP0014/CP0015 between the net8.0, net9.0 and net10.0
assets and every pack on main has failed since 2026-10-13. The diagnostics are
on Polyfill's internal shims, not on DelegateTransform's API.

Generated with `dotnet pack -c Release -p:ApiCompatGenerateSuppressionFile=true`
on SDK 10.0.403. The 11 entries match the 11 diagnostics in the failing CI run
41251357978.

Fixes #90

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017vfJW4kJTwmbNJbKX5P18J
@sonarqubecloud

sonarqubecloud Bot commented Nov 1, 2026

Copy link
Copy Markdown

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.

No release since v2.0.2 (Oct 12): every main CI run since Oct 13 fails at pack on package validation (CP0014/CP0015) after the Polyfill 11.4.5 bump

2 participants