chore: stop dependabot proposing SixLabors majors it cannot land by erwan-joly · Pull Request #302 · NosCoreIO/NosCore.PathFinder · GitHub
Skip to content

chore: stop dependabot proposing SixLabors majors it cannot land - #302

Merged
erwan-joly merged 1 commit into
masterfrom
chore/sixlabors-v4
Aug 23, 2026
Merged

erwan-joly merged 1 commit into
masterfrom
chore/sixlabors-v4

Conversation

@erwan-joly

@erwan-joly erwan-joly commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Closes #299 and #301 — neither can be merged.

Why they cannot go green

ImageSharp 4 / Drawing 3 ship an MSBuild task that validates a Six Labors license key. It is lenient in Debug and strict in Release:

<ValidateLicenseTask ... ContinueOnError="$(Configuration.StartsWith('Debug'))" />

The release workflow runs dotnet build -c Release before dotnet pack, so with the bump applied:

SixLabors.ImageSharp.Drawing.targets(28,5): error : No Six Labors license found.
SixLabors.ImageSharp.Drawing.targets(28,5): error : Please obtain a license from https://sixlabors.com/pricing/
    1 Error(s)

That is a purchase, not a code fix.

Separately, Drawing 3 removes the IImageProcessingContext Fill / DrawText extension methods entirely and replaces them with a stateful DrawingCanvas built from an ImageFrame, taking Brush/Pen instead of Color and Rectangle instead of RectangleF. Every drawing call across TestHelper, BrushFireTests, FlowFieldTests, GoalBasedPathfinderTests and JumpPointSearchPathfinderTests would need rewriting — for test-only visualisation that already works.

What this does

Pins the three SixLabors packages to their current major (3.1.12 / 2.1.7 / 2.1.3, still Apache-2.0) and tells dependabot to stop opening major bumps for them, so these PRs do not reappear daily.

Minor and patch updates still flow normally.

If the licence is ever bought, drop the ignore block and the migration can be done deliberately.

Verified: dotnet build -c Release succeeds on this branch and fails with the bump applied.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Configured automated dependency updates to skip major-version upgrades for selected image-processing and font libraries.

ImageSharp 4 and Drawing 3 ship an MSBuild task that validates a Six Labors
license key. It degrades to a warning in Debug but fails the build outright in
Release:

    SixLabors.ImageSharp.Drawing.targets(28,5): error : No Six Labors license found.
    Please obtain a license from https://sixlabors.com/pricing/

The release workflow runs `dotnet build -c Release` before packing, so the major
bump cannot go green without a purchased licence, no matter what the code does.
On top of that Drawing 3 replaces the IImageProcessingContext Fill/DrawText
extensions with a stateful DrawingCanvas, which would mean rewriting every
drawing call in the test suite for no functional gain.

Pinning to the 3.x/2.x line, which is Apache-2.0 and works.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 23, 2026 •

Copy link
Copy Markdown

@erwan-joly
erwan-joly merged commit 10a98f5 into master Aug 23, 2026
4 checks passed
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.

1 participant