Repository navigation
[deps] Pin platform-aligned packages to their platform major in Dependabot #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jellar
wants to merge
1
commit into
main
Choose a base branch
from
chore/dependabot-platform-pins
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+36
−0
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,51 @@ | ||
| version: 2 | ||
| # Platform-aligned packages are pinned to the platform's major version (and TypeScript to Angular's range). | ||
| # Platform upgrades (.NET 11, Angular 23, Node 24) happen deliberately, all packages together, with an ADR. | ||
| updates: | ||
| - package-ecosystem: nuget | ||
| directory: / | ||
| schedule: { interval: weekly } | ||
| groups: { nuget-minor: { update-types: [minor, patch] } } | ||
| ignore: | ||
| # Major versions of these track the .NET major (11.x targets .NET 11; e.g. ApiDescription.Server 11 | ||
| # ships no net10.0 tool and breaks the build-time OpenAPI document). | ||
| - dependency-name: "Microsoft.Extensions.*" | ||
| update-types: ["version-update:semver-major"] | ||
| - dependency-name: "Microsoft.AspNetCore.*" | ||
| update-types: ["version-update:semver-major"] | ||
| - dependency-name: "Microsoft.EntityFrameworkCore*" | ||
| update-types: ["version-update:semver-major"] | ||
| # EF Core 10 is built against SqlClient 6.x. | ||
| - dependency-name: "Microsoft.Data.SqlClient" | ||
| update-types: ["version-update:semver-major"] | ||
| - package-ecosystem: npm | ||
| directory: /web | ||
| schedule: { interval: weekly } | ||
| groups: { npm-minor: { update-types: [minor, patch] } } | ||
| ignore: | ||
| # Angular 22 requires typescript >=6.0 <6.1 (peer dependency of @angular/build and compiler-cli). | ||
| - dependency-name: "typescript" | ||
| update-types: ["version-update:semver-major", "version-update:semver-minor"] | ||
| # Angular and its tooling move together, one major at a time (ng update). | ||
| - dependency-name: "@angular/*" | ||
| update-types: ["version-update:semver-major"] | ||
| - dependency-name: "@angular-devkit/*" | ||
| update-types: ["version-update:semver-major"] | ||
| - dependency-name: "angular-eslint" | ||
| update-types: ["version-update:semver-major"] | ||
| - dependency-name: "@angular-eslint/*" | ||
| update-types: ["version-update:semver-major"] | ||
| # Types must match the Node 22 runtime. | ||
| - dependency-name: "@types/node" | ||
| update-types: ["version-update:semver-major"] | ||
| - package-ecosystem: npm | ||
| directory: /tests/e2e | ||
| schedule: { interval: weekly } | ||
| groups: { e2e-minor: { update-types: [minor, patch] } } | ||
| ignore: | ||
| # Types must match the Node 22 runtime. | ||
| - dependency-name: "@types/node" | ||
| update-types: ["version-update:semver-major"] | ||
| - package-ecosystem: github-actions | ||
| directory: / | ||
| schedule: { interval: monthly } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should fix:
Microsoft.Extensions.*is too broad.Microsoft.Extensions.AI*(used by AiGateway) is versioned independently of the .NET major, so this glob would also block its legitimate major bumps. Dependabot would stay silent about them, with no warning.Suggested fix: list the .NET-aligned families explicitly (
Microsoft.Extensions.Http.Resilience,Microsoft.Extensions.Diagnostics.Testing,Microsoft.Extensions.Hosting*,Microsoft.Extensions.Configuration*,Microsoft.Extensions.DependencyInjection*,Microsoft.Extensions.Logging*, and so on). Or keep the glob and add Dependabot'sallowforMicrosoft.Extensions.AI*. Check which packagesDirectory.Packages.propsactually references.Also note that the ignore rules don't revert the already-merged SqlClient 8.0.0 bump (#31), even though the new comment says EF Core 10 targets 6.x. Please confirm that the build is fine with 8.0.0 or revert it.