You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 53a6a67
Browse filesBrowse the repository at this point in the historyBrowse files
Review of the skip found two cases it should not cover. The agent
verdict read one installed copy, where vex and apply --check judge
every copy, so an unpatched copy in the tree of another Ruby was
skipped as patched. And a hosted pin counted on its uuid alone, so a
pin over an install that is still the upstream gem closed the scan
with "Nothing left to patch".
The skip now needs every installed copy of the gem to hold the patch:
a hosted copy by its files, a copy patched in place by its rebuilt
extension as well. Otherwise the refusal stands as before. The second
place that raises native_extensions_unsupported uses the constant.
Refs #2269
Assisted-by: Claude Code:claude-fable-5-2
Copy file name to clipboardExpand all lines: crates/socket-patch-cli/CLI_CONTRACT.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2515,7 +2515,7 @@ command's integration tests check its output.
2515
2515
| `vendor_unsupported_ecosystem` | `skipped` | vendor: no vendor backend for this purl's ecosystem (jsr). |
2516
2516
| `already_vendored` | `skipped` | vendor: artifact + wiring already in sync for this patch uuid. |
2517
2517
| `vendor_gem_version_not_locked` | `skipped` (benign; exit 0) | vendor / scan / get `--mode vendored` (gem): no section of the project's `Gemfile.lock` resolves the gem at this version (typically a gem Ruby ships in the gem home, or another project's copy in a shared gem home, which the crawl of that gem home returns). Decided before any download: the patch is not fetched, the Gemfile and lock stay byte-identical, and nothing is written. Human: `[skip] <purl> (vendor_gem_version_not_locked): …` in the download phase of `scan` / `get` (both identifier paths) and in their dry run, `Skipping <purl>: …` in `vendor`. The vendored twin of `redirect_gem_version_not_locked`. |
2518
-
| `vendor_gem_patched_in_other_mode` | `skipped` (benign; exit 0) | vendor / scan / get `--mode vendored` (gem): the gem builds a native extension, which vendored mode refuses (`native_extensions_unsupported`), and it already holds the selected patch in a mode that refusal names. Either `Gemfile.lock` still pins that patch hosted, or the manifest records it and the installed copy holds it as agent mode leaves it (the verdict `vex` and `apply --check` use). The reason names the mode and the patch uuid. Nothing is written: the hosted pin, the manifest record and the installed copy stay as they were. Human: `Skipping <purl>: <gem> builds a native extension, which vendored mode cannot vendor; it stays patched in hosted mode (patch <uuid>)`. The closing totals of `scan` count the gem as patched. A native gem that holds another patch, or none, is still refused with `native_extensions_unsupported` (exit 1). A dry run of `scan` / `get` previews neither the refusal nor this skip. |
2518
+
| `vendor_gem_patched_in_other_mode` | `skipped` (benign; exit 0) | vendor / scan / get `--mode vendored` (gem): the gem builds a native extension, which vendored mode refuses (`native_extensions_unsupported`), and it already holds the selected patch in a mode that refusal names. Either `Gemfile.lock` still pins that patch hosted, or the manifest records it for agent mode; and every installed copy of the gem that the crawl finds holds the patch (a hosted copy by its files; a copy patched in place as `vex` and `apply --check` judge it, its rebuilt extension included). The reason names the mode and the patch uuid. Nothing is written: the hosted pin, the manifest record and the installed copy stay as they were. Human: `Skipping <purl>: <gem> builds a native extension, which vendored mode cannot vendor; it stays patched in hosted mode (patch <uuid>)`. The closing totals of `scan` count the gem as patched. A native gem that holds another patch or none, or with an installed copy that does not hold the patch (a hosted pin whose gem was not reinstalled, an unpatched copy in the tree of another Ruby), is still refused with `native_extensions_unsupported` (exit 1). A dry run of `scan` / `get` previews neither the refusal nor this skip. |
2519
2519
| `vendor_maven_version_not_selected` | `skipped` (benign; exit 0) | vendor / scan / get `--mode vendored` (Maven): no module of the build resolves the artifact at the patch's base version; the reason names the versions Maven selects instead (a nearer declaration, the project's own declaration or management, an `<exclusion>`, a version range), or says that no module resolves the artifact. Decided before any download: the patch is not fetched and no file is written, except that a pin an earlier run wrote for that version is taken out of the poms (the reason says so), since it would keep forcing a version the build no longer selects. Human: `[skip] <purl> (vendor_maven_version_not_selected): …` in the download phase of `scan` / `get` and in their dry run, `Skipping <purl>: …` in `vendor`. The vendored twin of `redirect_maven_version_not_selected`. See [Maven version selection](#maven-version-selection-hosted-and-vendored-maven). |
2520
2520
| `vendor_maven_selection_undetermined` | `skipped` (benign; exit 0) | vendor / scan / get `--mode vendored` (Maven): what the build selects for the artifact cannot be read (the reason says why: typically a pom the local repository does not hold, because the project was never resolved) and no declaration names the patch's base version, so nothing is pinned on a guess and no file is written. The reason carries the remedy that fits its cause (resolve the project once and re-run when a pom is missing from the local repository; otherwise declare the artifact at the base version). The vendored twin of `redirect_maven_selection_undetermined`. |
2521
2521
| `vendor_maven_pin_would_move_module` | `skipped` (benign; exit 0) | vendor / scan / get `--mode vendored` (Maven reactor): the only poms that resolve the artifact at the patch's base version are parent poms above a module that resolves another version. A `<dependencyManagement>` pin in the parent is inherited by that module and would move it, and Maven has no management that reaches a parent and not its children, so nothing is pinned and no file is written; the reason names the parent, the module and its version. When a sibling module does select the base version it is pinned and the same sentence is the `vendor_jvm_degraded` reason `pin_would_move_module`. |
0 commit comments