From 9d0d76f0a50c6525860030d4b36321d7179b1d28 Mon Sep 17 00:00:00 2001 From: Micah Date: Tue, 16 Jan 2024 12:09:10 -0800 Subject: [PATCH] Ensure plugin and Cargo version match exact at compile-time (#836) --- build.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/build.rs b/build.rs index 7dbfc98a0..9f9a606bb 100644 --- a/build.rs +++ b/build.rs @@ -48,12 +48,8 @@ fn main() -> Result<(), anyhow::Error> { let plugin_version = Version::parse(fs::read_to_string(plugin_root.join("Version.txt"))?.trim())?; - assert!( - our_version.major == plugin_version.major, - "plugin version does not match Cargo version" - ); - assert!( - our_version.minor == plugin_version.minor, + assert_eq!( + our_version, plugin_version, "plugin version does not match Cargo version" );