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

feat: lockfiles #3231

Merged
merged 14 commits into from
Nov 3, 2019
Prev Previous commit
Next Next commit
clippy
  • Loading branch information
ry committed Oct 29, 2019
commit d060d7809fa544997edf5ef353d050b7f8634b22
14 changes: 6 additions & 8 deletions cli/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,12 @@ impl ThreadSafeState {
let mut g = lockfile.lock().unwrap();
if state2.flags.lock_write {
g.insert(&compiled_module);
} else {
if !g.check(&compiled_module)? {
eprintln!(
"lock file check failed {} {}",
g.filename, compiled_module.name
);
std::process::exit(10);
}
} else if !g.check(&compiled_module)? {
eprintln!(
"lock file check failed {} {}",
g.filename, compiled_module.name
);
std::process::exit(10);
ry marked this conversation as resolved.
Show resolved Hide resolved
}
}
Ok(compiled_module)
Expand Down