diff --git a/flake.nix b/flake.nix index 294023fe..1c7ed256 100644 --- a/flake.nix +++ b/flake.nix @@ -103,6 +103,7 @@ (craneLib.fileset.commonCargoSources ./parakeet) (craneLib.fileset.commonCargoSources ./parakeet-db) (craneLib.fileset.commonCargoSources ./parakeet-index) + ./parakeet-index/proto (craneLib.fileset.commonCargoSources ./parakeet-lexgen) (craneLib.fileset.commonCargoSources crate) ]; diff --git a/parakeet-index/build.rs b/parakeet-index/build.rs index ec77e8a7..52c95e1f 100644 --- a/parakeet-index/build.rs +++ b/parakeet-index/build.rs @@ -1,5 +1,8 @@ fn main() -> Result<(), Box> { - tonic_build::configure().compile_protos(&["proto/parakeet.proto"], &[""])?; + tonic_build::configure().compile_protos( + &[std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("proto/parakeet.proto")], + &[std::path::Path::new(env!("CARGO_MANIFEST_DIR"))], + )?; Ok(()) }