Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
15 changes: 14 additions & 1 deletion crates/socket-patch-cli/tests/in_process_redirect_pnpm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2770,7 +2770,7 @@ async fn hosted_scan_from_npm_member_with_stray_lock_refuses() {
}
}

/// #1101 (Bun), #1134 (vlt): a workspace member holding a stray
/// #1101 (Bun), #1134 / #1542 (vlt): a workspace member holding a stray
/// `bun.lock` / `bun.lockb` / `vlt-lock.json` of its own (one its manager
/// never reads; members install from the root lock) used to skip the
/// #884 / #942 refusal. `scan` and `get` pinned the ignored member lock
Expand Down Expand Up @@ -2804,6 +2804,19 @@ async fn hosted_scan_from_bun_or_vlt_member_with_stray_lock_refuses() {
"vlt-lock.json",
vlt_text.as_str(),
),
// #1542: vlt lists members through extglobs too.
(
"vlt-lock.json",
Some(r#"{"workspaces":["packages/+(a|b)"]}"#),
"vlt-lock.json",
vlt_text.as_str(),
),
(
"vlt-lock.json",
Some(r#"{"workspaces":["packages/@(a|b)"]}"#),
"vlt-lock.json",
vlt_text.as_str(),
),
] {
let tmp = tempfile::tempdir().unwrap();
let member = write_package_json_workspace(tmp.path(), root_lock, false);
Expand Down
Loading
Loading