Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing error grabbing latest release #65

Merged
merged 5 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading