Repository navigation
chore(deps): EF Core を 9.0.20 へ更新し、2 つのロックファイルを同時に再生成する - #231
Merged
Merged
Conversation
Dependabot の PR #229(nuget-ef-core グループ)と同じ更新を、CLAUDE.md §3 「ロックファイルは全プロジェクト分を同時に再生成する」の手順で作り直したもの。 #229 は src/ 側のロックファイルしか整合させておらず、tests 側に残った `Microsoft.EntityFrameworkCore.SqlServer: [9.0.19, )` のせいで CI の locked-mode restore が NU1004 で落ちていた。ここでは `dotnet restore --force-evaluate` を流し、src / tests 両方の packages.lock.json を同一 コミットに含めている。 Microsoft.Data.SqlClient のピン(5.2.3)はそのまま。EF Core SqlServer が 宣言する版が 5.1.6 → 5.1.9 へ上がるが、メジャーは 5 で一致し、床値も 5.2.3 >= 5.1.9 で後退しないため EfCorePackageAlignmentTests は緑のまま。 宣言版を「現在 5.1.6」と書いていた csproj のコメントと CLAUDE.md を 5.1.9 へ追随させ、あわせて「素通りする下げ方」の例(revert して 5.1.7)が 5.1.9 未満になって成立しなくなったため 5.2.0 へ差し替えた。 検証: dotnet restore --locked-mode / dotnet build(警告 0・エラー 0)/ dotnet test(838 件すべて成功)。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011fF5EaW46Nc1tL71swdRNL
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
コードレビューで出た 3 点の手当て。いずれも本 PR の EF Core 更新で 説明と実態がずれた/ずれていたことが見えた箇所。 1. csproj のコメントが「床値は Dependabot の minor / patch で引き上げていく」と 書いていたが、この経路は塞がっている。Microsoft.Data.SqlClient の 5.2 は STS で 5.2.3(2025-04-29)が最後の公開版、5.1 は LTS として 5.1.9(2026-01-13)まで 保守が続いている(NuGet の公開一覧・公開日で確認)。5.2.x の minor / patch は もう出ず、残る 5.x → 6.x は dependabot.yml の ignore が止めるため床値は動かない。 さらに EF Core が宣言する版の方が新しくなったので、このピンは後退の防止ではなく 新しいサービシングの押しとどめになっている。数値上は 5.2.3 >= 5.1.9 が成立し どの検査も緑のままなので、気付けるのはコメントだけ。事実をそのまま書き残す。 ピンを 5.1 系へ移す変更自体は目的が別なので、別の変更セットで扱う。 2. EfCorePackageAlignmentTests のコメントに「現在 5.1.6」の写しが残っていた。 csproj と CLAUDE.md だけを直すと、ピンをどこまで下げられるかを判断する人が 最も見るであろうテスト側だけが古いままになる(§6 DRY が避けたい形)。 検証: dotnet build(警告 0・エラー 0)/ dotnet test(838 件すべて成功)。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011fF5EaW46Nc1tL71swdRNL
This was referenced Sep 14, 2026
This branch had an error being deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Context
Dependabot の #229(
nuget-ef-coreグループ / EF Core 9.0.19 → 9.0.20)を、CLAUDE.md §3 の**「ロックファイルは全プロジェクト分を同時に再生成する」**手順で作り直したものです。#229 はそのままではマージできないため、本 PR で置き換えて #229 はクローズします。#229 が落ちていた理由
build-and-testが locked-mode restore で失敗していました。Dependabot は
src/側のロックファイルしか整合させておらず、tests/IncidentInsight.Tests/packages.lock.jsonのincidentinsight.webセクションにMicrosoft.EntityFrameworkCore.SqlServer: [9.0.19, )が残っていました(同セクションのSqliteだけが 9.0.20 に進んだ状態)。CLAUDE.md に記録済みの既知の形(実例: PR #180 → #181)です。変更内容
Microsoft.EntityFrameworkCore.Design/.Sqlite/.SqlServer(web)と.InMemory/.Sqlite(tests)を 9.0.19 → 9.0.20。dotnet restore --force-evaluateでsrc/とtests/のpackages.lock.jsonを同一コミットで再生成。Microsoft.Data.SqlClientのピン(5.2.3)は据え置き。コメントの追随のみ(下記)。コメント / CLAUDE.md の追随
EF Core SqlServer が宣言する
Microsoft.Data.SqlClientの版が 5.1.6 → 5.1.9 に上がるため、「現在 5.1.6」と書いていた箇所を 5.1.9 へ直しました。あわせて、床値検査を素通りする下げ方の例として挙げていた「revert して 5.1.7 に戻す」が 5.1.9 未満になり成立しなくなったので、5.2.0 へ下げる例に差し替えています(穴そのものは変わらず残っているため、記述は残す)。ピンの発端を述べた 1 文は当時の事実なので、履歴だと読める見出しを付けて残しました。EfCorePackageAlignmentTestsの判定は本 PR で緑のままです。typeはDirect✅検証
CLAUDE.md §2 / CI 設定に記載のコマンドをローカルで全実行しました。
dotnet restore --locked-mode— 成功(chore(deps): Bump Microsoft.EntityFrameworkCore.Design and 3 others #229 が落ちていた工程)dotnet build— 警告 0 / エラー 0dotnet test— 838 件すべて成功(Failed 0 / Skipped 0)影響範囲
パッチレベルのサービシング更新のみで、アプリのコード・スキーマ・マイグレーションに変更はありません。
Microsoft.Data.SqlClientの実際の解決版も 5.2.3 のまま変わりません。🤖 Generated with Claude Code
https://claude.ai/code/session_011fF5EaW46Nc1tL71swdRNL
Generated by Claude Code