diff --git a/src/config/config.rs b/src/config/config.rs index 53914a0a..9f03b57a 100644 --- a/src/config/config.rs +++ b/src/config/config.rs @@ -53,7 +53,7 @@ pub fn config_validator<'a>() -> V::Structure<'a> { V::Structure::new() .member("minimum_vagga", MinimumVagga::new() .optional() - .current_version(env!("VAGGA_VERSION").to_string())) + .current_version(env!("CARGO_PKG_VERSION").to_string())) .member("mixins", V::Sequence::new(V::Scalar::new())) .member("containers", V::Mapping::new( V::Scalar::new(), diff --git a/src/launcher/mod.rs b/src/launcher/mod.rs index c6bc2bf0..bc959246 100644 --- a/src/launcher/mod.rs +++ b/src/launcher/mod.rs @@ -91,7 +91,7 @@ pub fn run(input_args: Vec) -> i32 { Run `vagga` without arguments to see the list of commands. "); ap.add_option(&["-V", "--version"], - Print(env!("VAGGA_VERSION").to_string()), + Print(env!("CARGO_PKG_VERSION").to_string()), "Show vagga version and exit"); ap.refer(&mut set_env) .add_option(&["-E", "--env", "--environ"], Collect,