Skip to content

Commit

Permalink
also rebuild if protos.rs file has changed
Browse files Browse the repository at this point in the history
  • Loading branch information
JojiiOfficial committed May 1, 2024
1 parent 504989b commit dc46e8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/protos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ const GRPC_OUTPUT_FILE: &str = "src/qdrant.rs";
fn protos() {
let out_time = timestamp(GRPC_OUTPUT_FILE);
let mut protos = std::fs::read_dir("proto").unwrap();
if !protos.any(|d| timestamp(d.unwrap().path()) > out_time) {
if !protos.any(|d| timestamp(d.unwrap().path()) > out_time)
&& timestamp("tests/protos.rs") <= out_time
{
return;
}

Expand Down

0 comments on commit dc46e8e

Please sign in to comment.