Skip to content

Commit

Permalink
Fix grabbing latest version when generating a prject.
Browse files Browse the repository at this point in the history
  • Loading branch information
kubaplas committed Dec 13, 2023
1 parent 44a0b6a commit 4d835e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2023-03-01
nightly-2023-04-20
5 changes: 3 additions & 2 deletions src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ impl Project {
},
};

dbg!(template_path.clone());

cargo_generate::generate(GenerateArgs {
template_path,
list_favorites: false,
Expand Down Expand Up @@ -399,11 +401,10 @@ impl Project {
}

fn odra_location(source: Option<String>) -> 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
Expand Down

0 comments on commit 4d835e2

Please sign in to comment.