This is an automated email from the ASF dual-hosted git repository.

jorgecarleitao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git

commit a9189bd6d2699b9962e20601a4750d031edd4fc7
Author: Jorge C. Leitao <[email protected]>
AuthorDate: Sun Apr 18 14:51:28 2021 +0000

    Fiddle path to flight protobuf generation.
---
 arrow-flight/build.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arrow-flight/build.rs b/arrow-flight/build.rs
index ca23255..bc84f37 100644
--- a/arrow-flight/build.rs
+++ b/arrow-flight/build.rs
@@ -24,16 +24,16 @@ use std::{
 
 fn main() -> Result<(), Box<dyn std::error::Error>> {
     // avoid rerunning build if the file has not changed
-    println!("cargo:rerun-if-changed=../../format/Flight.proto");
+    println!("cargo:rerun-if-changed=../format/Flight.proto");
 
     // override the build location, in order to check in the changes to proto 
files
     env::set_var("OUT_DIR", "src");
 
     // The current working directory can vary depending on how the project is 
being
     // built or released so we build an absolute path to the proto file
-    let path = Path::new("../../format/Flight.proto");
+    let path = Path::new("../format/Flight.proto");
     if path.exists() {
-        tonic_build::compile_protos("../../format/Flight.proto")?;
+        tonic_build::compile_protos("../format/Flight.proto")?;
         // read file contents to string
         let mut file = OpenOptions::new()
             .read(true)

Reply via email to