Spring 6+ upgrades trigger migration to HttpClient 5 – how to deal with undeclared dependency on HttpClient 4?
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
まずディスカッション 4584 と openrewrite/rewrite-spring#566 の関連する変更を確認し、いつ移行がトリガーされるのかを理解します。HttpClient 4 が推移的な依存関係にすぎないプロジェクトについて、recipe とその依存関係検出の動作を調査します。Done は、再現可能なケースと、欠落している HttpClient 5 の依存関係を処理するための検証済みの戦略によって定義します。
索引モデルが issue の本文から書いたものです。
説明
Discussed in https://github.com/openrewrite/rewrite/discussions/4584
Originally posted by @DidierLoiseau October 16, 2024
I noticed an issue with this migration, which is triggered transitively by Spring Boot 3+ upgrades since openrewrite/rewrite-spring#566: HttpClient 4 is a relatively common dependency, so people often use it without even realizing it is pulled transitively by another dependency, and they don’t declare HttpClient as an explicit dependency.
The problem with this migration is that it will update the code without adding the HttpClient 5 dependency if HttpClient 4 was missing.
Is there a way around this?
- 主要言語
- Java
- スター
- 6
- フォーク
- 18
- 平均マージ
- 10分
- マージ済み PR(30日)
- 11
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
openrewrite/rewrite-apache のほかの issue
-
recipe
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
openrewrite/rewrite-apache#37 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
recipe
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
openrewrite/rewrite-apache#98 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
recipe
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
openrewrite/rewrite-apache#68 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Apache HttpClient 4 to 5 does not yet migrate `StringEntity.setContentEncoding()` to constructor argument再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbug recipe
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
openrewrite/rewrite-apache#54 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
openrewrite/rewrite-apache#28 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
openrewrite/rewrite-apache の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
[Bug]: REST API URL starting with "http" but no scheme (e.g. httpbin.org/get) is not given an http:// prefix対応中かも @ItsDeadlyProgrammer が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
appsmithorg/appsmith#42471 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
code-maintenance
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
bug priority: medium Review effort [1-5]: 3 status: needs-triage type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
carlos-emr/carlos#5258 ·
メンテナーはふだん 1 日以内に返信