mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-22 13:21:38 +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 =
|
let plugin_version =
|
||||||
Version::parse(fs::read_to_string(plugin_root.join("Version.txt"))?.trim())?;
|
Version::parse(fs::read_to_string(plugin_root.join("Version.txt"))?.trim())?;
|
||||||
|
|
||||||
assert!(
|
assert_eq!(
|
||||||
our_version.major == plugin_version.major,
|
our_version, plugin_version,
|
||||||
"plugin version does not match Cargo version"
|
|
||||||
);
|
|
||||||
assert!(
|
|
||||||
our_version.minor == plugin_version.minor,
|
|
||||||
"plugin version does not match Cargo version"
|
"plugin version does not match Cargo version"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue