mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 03:36:06 +00:00
Ensure plugin and Cargo version match exact at compile-time (#836)
This commit is contained in:
parent
c7173ac832
commit
9d0d76f0a5
1 changed files with 2 additions and 6 deletions
8
build.rs
8
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"
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue