Skip to content

Commit

Permalink
fix caching issue
Browse files Browse the repository at this point in the history
  • Loading branch information
TheButlah committed Oct 17, 2024
1 parent d799435 commit ff9f0d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fn main() {
// absolute paths.
#[allow(clippy::eq_op)]
let is_public =
env!("CARGO_PKG_REPOSITORY") == "https://github.com/worldcoin/orb-messages";
std::env::var("CARGO_PKG_REPOSITORY").unwrap() == "https://github.com/worldcoin/orb-messages";
let (messages_dir, priv_dir) = if is_public {
println!("cargo:warning=Be aware that private definitions are stubbed out when building the public crate.");

Expand All @@ -18,7 +18,6 @@ fn main() {

// rebuild if any of this changes
println!("cargo:rerun-if-env-changed=PROTOC");
println!("cargo:rerun-if-env-changed=build.rs");
println!("cargo:rerun-if-env-changed=PROTOC_INCLUDE");
println!("cargo:rerun-if-changed={}", messages_dir.display());
println!("cargo:rerun-if-changed={}", priv_dir.display());
Expand Down

0 comments on commit ff9f0d7

Please sign in to comment.