Skip to content

Ignore major version updates for nuget and npm packages#74

Merged
lucaslorentz merged 1 commit intomainfrom
fix/dependabot-ignore-major-updates
Mar 30, 2026
Merged

Ignore major version updates for nuget and npm packages#74
lucaslorentz merged 1 commit intomainfrom
fix/dependabot-ignore-major-updates

Conversation

@lucaslorentz
Copy link
Copy Markdown
Owner

@lucaslorentz lucaslorentz commented Mar 30, 2026

Summary

  • Ignores major version updates for all nuget and npm packages
  • Patch and minor updates continue to work automatically (security fixes, etc.)
  • Major bumps are done manually when adding new target frameworks or upgrading dependencies intentionally

Context

Dependabot doesn't understand MSBuild conditions. Packages are pinned to framework-specific majors via conditional ItemGroups (e.g., 8.x for net8.0, 9.x for net9.0), and major bumps break multi-targeting. See PR #71 for an example.

Test plan

  • Verify dependabot no longer proposes major bumps
  • Confirm patch/minor updates still come through

🤖 Generated with Claude Code

@lucaslorentz lucaslorentz force-pushed the fix/dependabot-ignore-major-updates branch from ab9cccb to c185711 Compare March 30, 2026 21:46
Major version bumps are done manually. This prevents dependabot from
breaking multi-targeting (packages are pinned to framework-specific
majors via conditional ItemGroups) and from proposing disruptive
npm upgrades.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lucaslorentz lucaslorentz force-pushed the fix/dependabot-ignore-major-updates branch from c185711 to 3691fed Compare March 30, 2026 21:47
@lucaslorentz lucaslorentz changed the title Ignore major version updates for framework-pinned packages Ignore major version updates for nuget and npm packages Mar 30, 2026
@lucaslorentz lucaslorentz merged commit e2629c0 into main Mar 30, 2026
3 checks passed
@lucaslorentz lucaslorentz deleted the fix/dependabot-ignore-major-updates branch March 30, 2026 21:53
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