Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-7794

[Rust] cargo publish fails for arrow-flight due to relative path to Flight.proto

    XMLWordPrintableJSON

Details

    Description

      Running "cargo publish" for the arrow-flight crate resulted in this error:

      error: failed to run custom build command for `arrow-flight v0.16.0 (/home/andy/apache-arrow-0.16.0/rust/target/package/arrow-flight-0.16.0)`Caused by:
        process didn't exit successfully: `/home/andy/apache-arrow-0.16.0/rust/target/package/arrow-flight-0.16.0/target/debug/build/arrow-flight-1b2906a3933d2832/build-script-build` (exit code: 1)
      --- stderr
      Error: Custom { kind: Other, error: "protoc failed: ../../format: warning: directory does not exist.\nCould not make proto path relative: ../../format/Flight.proto: No such file or directory\n" }
       

      The workaround was to edit the build.rs and make the path absolute and then run "cargo publish --allow-dirty", but we should find a better solution before the next release.

      Attachments

        Activity

          People

            andygrove Andy Grove
            andygrove Andy Grove
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 20m
                1h 20m