drop profile directory change on CARGO_PKG_VERSION_PATCH update

This commit is contained in:
yggverse 2024-10-11 22:35:03 +03:00
parent 53a18acbc5
commit 32d1701fc6
2 changed files with 6 additions and 2 deletions

View file

@ -19,7 +19,11 @@ fn main() -> ExitCode {
profile_path.push(VENDOR);
profile_path.push(APP_ID);
profile_path.push(BRANCH);
profile_path.push(env!("CARGO_PKG_VERSION")); // @TODO remove after auto-migrate feature implementation
profile_path.push(format!(
"{}.{}",
env!("CARGO_PKG_VERSION_MAJOR"),
env!("CARGO_PKG_VERSION_MINOR")
)); // @TODO remove after auto-migrate feature implementation
if let Err(e) = create_dir_all(&profile_path) {
panic!("Failed to create profile directory: {e}")