From 4d835e23bdba96cf4ecc0cbc7b661d998c9bc9eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20P=C5=82askonka?= Date: Wed, 13 Dec 2023 11:14:11 +0100 Subject: [PATCH] Fix grabbing latest version when generating a prject. --- rust-toolchain | 2 +- src/project.rs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/rust-toolchain b/rust-toolchain index 101ae3a..b27a258 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -nightly-2023-03-01 \ No newline at end of file +nightly-2023-04-20 diff --git a/src/project.rs b/src/project.rs index 96917f3..432d428 100644 --- a/src/project.rs +++ b/src/project.rs @@ -83,6 +83,8 @@ impl Project { }, }; + dbg!(template_path.clone()); + cargo_generate::generate(GenerateArgs { template_path, list_favorites: false, @@ -399,11 +401,10 @@ impl Project { } fn odra_location(source: Option) -> OdraLocation { - // repo let source = if let Some(source) = source { source } else { - return OdraLocation::Remote(ODRA_TEMPLATE_GH_REPO.to_string(), None); + Self::odra_latest_version() }; // location on disk