Skip to content

Commit 5132bb0

Browse files
committed
Accept the workspace inert wording in zip pin test
With the workspace model, the go.work-level check reports a raised zip-pinned replace as inert (the workspace requires the higher version), so the test asserts the verdict and version, not the module-mode sentence. Assisted-by: Claude Code:claude-opus-5-5
1 parent 052a4fa commit 5132bb0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • crates/socket-patch-core/src/vex/discover

‎crates/socket-patch-core/src/vex/discover/golang.rs‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,11 @@ mod tests {
13041304
assert_refs(&out, &[]);
13051305
assert_eq!(out.diagnostics.len(), 1, "{member_version}");
13061306
assert_eq!(out.diagnostics[0].code, DIAG_REF_INVALID);
1307-
assert!(out.diagnostics[0].detail.contains("selects v1.5.0"));
1307+
let detail = &out.diagnostics[0].detail;
1308+
assert!(
1309+
detail.contains("is inert") && detail.contains("v1.5.0"),
1310+
"{detail}"
1311+
);
13081312
} else {
13091313
assert_refs(&out, &[(PURL, UUID_A, WiringMode::Hosted)]);
13101314
assert_eq!(

0 commit comments

Comments
 (0)