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
17 changes: 6 additions & 11 deletions crates/socket-patch-cli/tests/scan/scan_ecosystems_scope_e2e.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,21 +212,16 @@ async fn gc_scan_keeps_the_unscoped_lockfile_only_count() {
}
}

/// The crawl of a GC run itself is unscoped: a crate installed under
/// `CARGO_HOME` (and absent from `Cargo.lock`, so only the cargo CRAWL can
/// vouch for it) keeps its manifest entry under `-e npm --prune`, while an
/// uninstalled npm entry is still prunable.
/// The crawl of a GC run itself is unscoped: a crate installed in the
/// project's `vendor/` tree (and absent from `Cargo.lock`, so only the
/// cargo CRAWL can vouch for it; a locked project's registry cache is only
/// looked up for its locked crates) keeps its manifest entry under
/// `-e npm --prune`, while an uninstalled npm entry is still prunable.
#[tokio::test]
async fn gc_scan_crawls_the_unselected_ecosystems() {
let tmp = tempfile::tempdir().unwrap();
stage_project(tmp.path());
let krate = tmp
.path()
.join(".cargo-home")
.join("registry")
.join("src")
.join("index.crates.io-6f17d22bba15001f")
.join(format!("{INSTALLED_CRATE}-0.2.0"));
let krate = tmp.path().join("vendor").join(INSTALLED_CRATE);
std::fs::create_dir_all(&krate).unwrap();
std::fs::write(
krate.join("Cargo.toml"),
Expand Down
Loading
Loading