From 9c1416eabf87d7a16aabe536c27cc81acb2026c9 Mon Sep 17 00:00:00 2001 From: jasonwitty Date: Thu, 4 Sep 2025 05:52:57 -0700 Subject: [PATCH] Fix build script to use vendored protoc binary for CI --- socktop_connector/build.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/socktop_connector/build.rs b/socktop_connector/build.rs index a4aa618..691a646 100644 --- a/socktop_connector/build.rs +++ b/socktop_connector/build.rs @@ -1,4 +1,10 @@ fn main() -> Result<(), Box> { + // Set the protoc binary path to use the vendored version for CI compatibility + // SAFETY: We're only setting PROTOC in a build script environment, which is safe + unsafe { + std::env::set_var("PROTOC", protoc_bin_vendored::protoc_bin_path()?); + } + prost_build::compile_protos(&["processes.proto"], &["."])?; Ok(()) }