Skip to content

Commit

Permalink
Fixing error grabbing latest release (#65)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
kubaplas and zie1ony authored Dec 13, 2023
1 parent 32d9cb1 commit 1dffad3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 3 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DEVELOPMENT_ODRA_BRANCH := "release/0.5.0"
DEVELOPMENT_ODRA_BRANCH := "release/0.7.1"

default:
just --list
Expand All @@ -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
Expand Down
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
3 changes: 1 addition & 2 deletions src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,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 1dffad3

Please sign in to comment.