From 1dffad3c0287ebbc720669eb802c4381a8738e57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20P=C5=82askonka?= Date: Wed, 13 Dec 2023 12:44:19 +0100 Subject: [PATCH] Fixing error grabbing latest release (#65) * Update version to 0.0.10 * Fix grabbing latest version when generating a prject. * Updated changelog * Install wasm32 target for testproject during ci --------- Co-authored-by: zie1ony --- CHANGELOG.md | 6 ++++++ Cargo.toml | 2 +- justfile | 4 +++- rust-toolchain | 2 +- src/project.rs | 3 +-- 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f301df7..6e4b0fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ Changelog for `cargo-odra`. +## [0.0.10] - 2023-12-13 + +### Fixed +- Fixed error that caused the template for odra 0.8.0 being downloaded for earlier +versions of odra. + ## [0.0.9] - 2023-07-19 ### Added diff --git a/Cargo.toml b/Cargo.toml index b503d91..9785bef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ description = "A cargo utility that helps to create, manage and test your smart keywords = ["wasm", "webassembly", "blockchain"] categories = ["wasm", "smart contracts"] name = "cargo-odra" -version = "0.0.9" +version = "0.0.10" edition = "2021" [dependencies] diff --git a/justfile b/justfile index 51c8128..2a48845 100644 --- a/justfile +++ b/justfile @@ -1,4 +1,4 @@ -DEVELOPMENT_ODRA_BRANCH := "release/0.5.0" +DEVELOPMENT_ODRA_BRANCH := "release/0.7.1" default: just --list @@ -21,6 +21,8 @@ test-project-generation-on-future-odra: just test-testproject test-testproject: + cd testproject && rustup target add wasm32-unknown-unknown + cd testproject && rustup component add rustfmt --toolchain nightly-2023-03-01-x86_64-unknown-linux-gnu cd testproject && cargo odra generate -c plascoin cd testproject && cargo odra test cd testproject && cargo odra test -b casper 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..c278e90 100644 --- a/src/project.rs +++ b/src/project.rs @@ -399,11 +399,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