Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
fd06421
Pin a Maven patch only where Maven selects its base version
mikolalysenko Nov 16, 2026
abfabe0
Restore the line breaks of two vendored Maven warnings
mikolalysenko Nov 16, 2026
6c1467a
Read a dependency a pom declares twice as Maven does
mikolalysenko Nov 16, 2026
d5eb740
Pin a vendored Maven patch in the modules that select its version
mikolalysenko Nov 16, 2026
82d9239
Keep vendored Maven pins where they were committed, on every machine
mikolalysenko Nov 16, 2026
fbe0982
Merge the review fixes of the Maven selection work
mikolalysenko Nov 16, 2026
104f968
Never hold a pin that moves a module, and attest only wired modules
mikolalysenko Nov 16, 2026
cf3353c
Keep a Maven selection only while every read it was made from still h…
mikolalysenko Nov 16, 2026
a8d8045
Merge branch 'fix/maven-pin-follows-mediation' into fix/maven-pin-per…
mikolalysenko Nov 16, 2026
7795510
Let a deeper range the model cannot resolve hold the selection back
claude Nov 17, 2026
905c05b
Plan hosted Maven pins over a reactor, and wire ${property} versions
mikolalysenko Nov 17, 2026
9b79a5d
Find and restore hosted Maven pins in every pom of a reactor
mikolalysenko Nov 17, 2026
6ee38a8
Test hosted Maven reactors and property versions against real Maven
mikolalysenko Nov 17, 2026
8d4fbb8
Let a later hosted scan pin the Maven modules an earlier one could no…
mikolalysenko Nov 17, 2026
c377458
Never fail a hosted run on a Maven module pom that cannot be read
mikolalysenko Nov 17, 2026
d879384
Read an earlier release's Maven pin by its shape only in a single pom
mikolalysenko Nov 17, 2026
36c418f
Write a hosted Maven plan whole or not at all, over a reactor read once
mikolalysenko Nov 17, 2026
56ae4ee
Test the hosted Maven invariant against real Maven, and document it
mikolalysenko Nov 17, 2026
7e1f39c
test(maven): pin the hosted property and reactor rewrites in the gold…
mikolalysenko Nov 17, 2026
2ce982c
Merge origin/main into fix/maven-hosted-reactors-and-properties
mikolalysenko Nov 18, 2026
dc3ccc2
Never take a reactor pom that is not UTF-8 text for a missing one
mikolalysenko Nov 18, 2026
3b8dd67
Merge origin/main into fix/maven-hosted-reactors-and-properties
mikolalysenko Nov 18, 2026
7bdc058
Merge origin/main into fix/maven-hosted-reactors-and-properties
mikolalysenko Nov 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 148 additions & 4 deletions crates/socket-patch-cli/CLI_CONTRACT.md

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions crates/socket-patch-cli/src/commands/scan/hosted.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1577,10 +1577,9 @@ async fn run_redirect_selected_untracked(
// What Maven selects in each module, from the poms its local repository
// holds: a pin is written only where that is the patch's base version.
// Read once per run, off the runtime (the walk reads a pom per artifact
// of the build), and only for a pom the rewriter will edit.
// of the build), for a single pom and for every module of a reactor.
let maven_selection_read = if candidates.iter().any(|c| c.dep.ecosystem == "maven")
&& read.files.contains_key("pom.xml")
&& !socket_patch_core::patch::redirect::maven_reactor_root(&read.files)
{
let cwd = common.cwd.clone();
Some(
Expand Down
8 changes: 7 additions & 1 deletion crates/socket-patch-cli/src/commands/scan/hosted/takeover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,13 @@ impl Takeover {
if let Some(refusal) = socket_patch_core::hosted::engine::undecodable_guard(
&read.undecodable_reads,
candidates,
) {
)
.or_else(|| {
socket_patch_core::hosted::engine::undecodable_maven_guard(
&read.undecodable_maven_poms,
candidates,
)
}) {
return Err(refusal);
}
}
Expand Down
5 changes: 3 additions & 2 deletions crates/socket-patch-cli/src/commands/vex_sources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,9 @@ fn unattested_note(kind: UnattestedKind) -> (&'static str, &'static str) {
),
UnattestedKind::MavenReactorRoot => (
NOTE_MAVEN_REACTOR_ROOT,
"not attested while the root declares modules (roll it back and re-patch the \
reactor with `scan --mode vendored`)",
"not attested while a module of the reactor may build the unpatched version \
(re-run `scan` once that module resolves it, or patch the reactor with `scan \
--mode vendored`)",
),
UnattestedKind::MavenClassifierUnpatched => (
NOTE_MAVEN_CLASSIFIER_UNPATCHED,
Expand Down
Loading
Loading