Skip to content

Suppress Polyfill shim drift in package validation so main packs again [patch] - #220

Merged
matt-edmondson merged 1 commit into
mainfrom
fix/polyfill-compat-suppressions-200
Nov 13, 2026
Merged

matt-edmondson merged 1 commit into
mainfrom
fix/polyfill-compat-suppressions-200

Conversation

@matt-edmondson

Copy link
Copy Markdown
Contributor

Fixes #200

What was wrong

The Analyze & Release job has failed at pack on every main run since 2026-10-13, so nothing has released since v1.3.63-pre.3. Package validation reports 8 CP0014 errors and 1 CP0015 error between lib/net9.0 and lib/net10.0. All of them are on Polyfill 11.4.5's embedded shims, not on ktsu.CredentialCache's API.

Change

Adds CredentialCache/CompatibilitySuppressions.xml, generated with dotnet pack CredentialCache/CredentialCache.csproj -c Release -p:ApiCompatGenerateSuppressionFile=true. This is the same fix as DelegateTransform#91, Sorting#73 and ScopedAction#86.

All 9 entries target System.Diagnostics.CodeAnalysis.ExperimentalAttribute or System.Runtime.CompilerServices.DefaultInterpolatedStringHandler members. No entry names a ktsu.* type.

Verification

  • Before: dotnet pack -c Release fails with the CP0014/CP0015 set above (Linux, .NET SDK 10.0.403).
  • After: the same command packs with no errors.
  • dotnet test: 108 tests, 103 succeeded and 0 failed.

The release job only runs on main, so I can only confirm it after merge. Publishing to nuget.org may also still be blocked by the expired key tracked in ktsu-dev/.github#48.


Generated by Claude Code

Every main CI run since 2026-10-13 failed at pack with CP0014/CP0015
between the net9.0 and net10.0 assets, all on Polyfill 11.4.5's
embedded ExperimentalAttribute and DefaultInterpolatedStringHandler
shims rather than on ktsu.CredentialCache's API.

Generated with -p:ApiCompatGenerateSuppressionFile=true; all 9 entries
target those two shim types.

Fixes #200

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

Copy link
Copy Markdown

@matt-edmondson
matt-edmondson merged commit cc238d2 into main Nov 13, 2026
18 checks passed
@matt-edmondson
matt-edmondson deleted the fix/polyfill-compat-suppressions-200 branch November 13, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants