Maven patches can only be delivered as the main jar: hpi, aar, war and typed dependencies have no path
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with the type check in crates/socket-patch-core/src/patch/redirect/mod.rs, which refuses any Maven type other than jar, and the handling of non-jar types in crates/socket-patch-core/src/formats/maven/mod.rs. The issue lists three options, from failing loudly on non-main-jar targets to carrying the file extension through the rewriter and handling nested jars in .hpi and .aar files. Done means a maintainer has chosen one option, and that choice is reflected in the refusal warnings or the served tree. The issue is a design question, so settle the scope with maintainers before writing code.
索引モデルが issue の本文から書いたものです。
説明
[agent] Filed after a read-only review of the CLI source at 02add9be (main). Nothing was executed; the claims below come from reading the code.
Summary
A Maven patch can be delivered only as the main <artifactId>-<version>.jar. Artifacts whose users consume another file have no working path in hosted or vendored mode, and only a partial one in agent mode:
| Artifact kind | What users run | Agent mode | Hosted / vendored |
|---|---|---|---|
Jenkins plugin (hpi/jpi) |
classes inside the .hpi, under WEB-INF/lib/<artifactId>.jar |
the companion <artifactId>-<version>.jar in the cache can be patched; the .hpi copy Jenkins loads is not addressed |
a dependency with <type>hpi</type> is refused; the served tree holds only .jar and .pom |
Android library (aar) |
classes.jar inside the .aar, and the copy Gradle extracts into its transforms cache |
an .aar is treated as an opaque archive; the nested classes.jar and the extracted copy are not patched; a version directory that holds only an .aar is not discovered |
<type>aar</type> is refused, and Android Gradle builds are refused as a whole |
war, or a dependency that declares <type>bundle</type> |
the typed file | not checked here | refused: the rewriter accepts only jar (and pom) |
The refusals are warnings on a skipped dependency, so a project can look patched while the file that runs is unchanged. For Jenkins that means a patched compile class path and an unpatched running controller.
Where
- Hosted Maven accepts a
<type>only when it isjar:crates/socket-patch-core/src/patch/redirect/mod.rs(if typ != "jar"), andcrates/socket-patch-core/src/formats/maven/mod.rstreats any other non-empty type as not redirectable. - No code path looks inside a nested archive for a class-level record (
WEB-INF/lib/*.jarin an.hpi,classes.jarin an.aar); a search ofcrates/socket-patch-core/srcfinds no handling of either layout. - This is separate from #1069 (upstream files fetched only from Maven Central), which also affects these artifacts because most of them are published in other repositories.
What would close it
Any one of these, in order of size:
- State the limit and fail loudly: refuse a patch whose target is not a main jar with a named code, and say in the scan output that the runtime copy of a Jenkins plugin or an Android library is not covered.
- Carry the artifact's file extension from the patch record into the rewriter and the served tree, so a typed dependency whose file is in fact a jar (
bundle) or a whole-file replacement (hpi,aar,war) can be redirected. - Cover the nested copies: a record that names the nested jar member of an
.hpior theclasses.jarof an.aar, and detection of Gradle's extracted copies.
Context: the patch service is starting to build patches for artifacts published outside Maven Central (Jenkins, XWiki, Google's Maven repository). Plain jars from those repositories are found and patched by coordinates today, whatever repository they came from; this issue is about the other packaging kinds.
- 主要言語
- Rust
- スター
- 9
- フォーク
- 2
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 309
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
SocketDev/socket-patch のほかの issue
-
Windows unit tests fail on main: pnpm-registry-overrides fixtures are checked out as CRLF (mixes CRLF and LF line endings)対応中かも @mikolalysenko が今日担当しました。 オープンagent:claimed agent:triaged ci-janitor priority:p1
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
SocketDev/socket-patch#2238 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
agent:triaged arch-audit priority:p3 refactor
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
SocketDev/socket-patch#1860 ·
メンテナーはふだん 1 日以内に返信
-
agent:triaged arch-audit priority:p3 refactor
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
SocketDev/socket-patch#1838 ·
メンテナーはふだん 1 日以内に返信
-
Nightly: pnpm11_registry_route_is_cleaned_up_when_a_patch_is_not_needed fails on Windows (pnpm records the RUNNER~1 short path as a second importer)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンagent:triaged ci-janitor priority:p1
難易度 3/5 半日 初心者へのやさしさ 42/100
SocketDev/socket-patch#2235 ·
メンテナーはふだん 1 日以内に返信
-
Agent mode reports a gem whose installed file was edited as "not installed on this host" / "not found on disk", `apply --check` says to run `apply`, and `rollback` exits 1 with "modified after patching" on every run対応中かも @mikolalysenko が今日担当しました。 オープンagent:claimed agent:triaged bug bughunt pm:bundler priority:p1 ux
難易度 4/5 3〜5日 初心者へのやさしさ 18/100
SocketDev/socket-patch#2231 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
SocketDev/socket-patch の issue をすべて見る
似ている issue
-
area: cli good first issue type: feature
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
[Bug] Windows Ghidra provider rejects a PATH-only JDK: bare `java.exe` probe fails with Win32 87オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
renaming a provider to a taken name fails with a raw sql error対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンarea:storage kind:bug priority:p3 ready
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
bug bugfix
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
storytold/photocraft#16975 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信