Skip to content

Commit 6410a06

Browse files
committed
Fix WIndows CI
Signed-off-by: Andrew Stein <steinlink@gmail.com>
1 parent f828194 commit 6410a06

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

rust/perspective-client/build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,12 @@ fn prost_build() -> Result<()> {
6363
.compile_protos(&[proto_file], &[include_path])
6464
.unwrap();
6565

66-
std::fs::rename(
66+
std::fs::copy(
6767
std::env::var("OUT_DIR").unwrap() + "/perspective.proto.rs",
6868
"src/rust/proto.rs",
6969
)?;
70+
71+
std::fs::remove_file(std::env::var("OUT_DIR").unwrap() + "/perspective.proto.rs")?;
7072
}
7173

7274
Ok(())

0 commit comments

Comments
 (0)