Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for OS locking #33

Merged
merged 7 commits into from
Sep 29, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix test
  • Loading branch information
Jake-Shadle committed Sep 29, 2023
commit 11c7d1d9e275166898f11f22b57e0487cebe479e
4 changes: 3 additions & 1 deletion tests/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ fn builds_local_registry() {
versions: Vec<smol_str::SmolStr>,
}

let lock = tame_index::utils::flock::FileLock::unlocked();

for pkg in &md.packages {
if pkg.name == "tame-index" {
continue;
}
let ip = krates.entry(pkg.name.clone()).or_insert_with(|| {
let ik = sparse
.cached_krate(pkg.name.as_str().try_into().unwrap())
.cached_krate(pkg.name.as_str().try_into().unwrap(), &lock)
.unwrap()
.unwrap();

Expand Down