Skip to content

Commit

Permalink
Ensure plugin and Cargo version match exact at compile-time (#836)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dekkonot authored Jan 16, 2024
1 parent c7173ac commit 9d0d76f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
);

Expand Down

0 comments on commit 9d0d76f

Please sign in to comment.