Skip to content

Commit

Permalink
Release 0.31.0 (#2523)
Browse files Browse the repository at this point in the history
<!-- Reference any GitHub issues resolved by this PR -->

Closes #

## Introduced changes

<!-- A brief description of the changes -->

- Release 0.31.0

## Checklist

<!-- Make sure all of these are complete -->

- [x] Linked relevant issue
- [x] Updated relevant documentation
- [x] Added relevant tests
- [x] Performed self-review of the code
- [x] Added changes to `CHANGELOG.md`
  • Loading branch information
cptartur authored Sep 26, 2024
1 parent e212386 commit 249f1e9
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 19 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.31.0] - 2024-09-26

### Cast

#### Changed
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ members = [
]

[workspace.package]
version = "0.30.0"
version = "0.31.0"
edition = "2021"
repository = "https://github.com/foundry-rs/starknet-foundry"
license = "MIT"
Expand Down
24 changes: 17 additions & 7 deletions crates/forge/tests/e2e/running.rs
Original file line number Diff line number Diff line change
Expand Up @@ -663,9 +663,13 @@ fn with_exit_first_flag() {
fn init_new_project() {
let temp = tempdir_with_tool_versions().unwrap();

runner(&temp).args(["init", "test_name"]).assert().success();
runner(&temp)
.args(["init", "test_name"])
.env("DEV_DISABLE_SNFORGE_STD_DEPENDENCY", "true")
.assert()
.success();

validate_init(&temp);
validate_init(&temp, false);
}

#[test]
Expand All @@ -683,7 +687,7 @@ fn init_new_project_from_scarb() {
.assert()
.success();

validate_init(&temp);
validate_init(&temp, true);
}

pub fn append_to_path_var(path: &Path) -> OsString {
Expand All @@ -693,10 +697,16 @@ pub fn append_to_path_var(path: &Path) -> OsString {
env::join_paths(script_path.chain(other_paths)).unwrap()
}

fn validate_init(temp: &TempDir) {
fn validate_init(temp: &TempDir, validate_snforge_std: bool) {
let manifest_path = temp.join("test_name/Scarb.toml");
let scarb_toml = fs::read_to_string(manifest_path.clone()).unwrap();

let snforge_std_assert = if validate_snforge_std {
"\nsnforge_std = { git = \"https://github.com/foundry-rs/starknet-foundry\", tag = \"v[..]\" }"
} else {
""
};

let expected = formatdoc!(
r#"
[package]
Expand All @@ -709,16 +719,16 @@ fn validate_init(temp: &TempDir) {
[dependencies]
starknet = "[..]"
[dev-dependencies]
snforge_std = {{ git = "https://github.com/foundry-rs/starknet-foundry", tag = "v[..]" }}
[dev-dependencies]{}
assert_macros = "[..]"
[[target.starknet-contract]]
sierra = true
[scripts]
test = "snforge test"
"#
"#,
snforge_std_assert
);

assert_matches(&expected, &scarb_toml);
Expand Down
2 changes: 1 addition & 1 deletion crates/sncast/tests/e2e/script/general.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ async fn test_incompatible_sncast_std_version() {

snapbox.assert().success().stdout_matches(indoc! {r"
...
[WARNING] Package sncast_std version does not meet the recommended version requirement =0.30.0, it might result in unexpected behaviour
[WARNING] Package sncast_std version does not meet the recommended version requirement =0.31.0, it might result in unexpected behaviour
...
"});
}
Expand Down
2 changes: 1 addition & 1 deletion crates/snforge-scarb-plugin/Scarb.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "snforge_scarb_plugin"
version = "0.1.0"
version = "0.31.0"

[cairo-plugin]
2 changes: 1 addition & 1 deletion sncast_std/Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ version = 1

[[package]]
name = "sncast_std"
version = "0.30.0"
version = "0.31.0"
2 changes: 1 addition & 1 deletion sncast_std/Scarb.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[package]
name = "sncast_std"
version = "0.30.0"
version = "0.31.0"
edition = "2023_11"
4 changes: 2 additions & 2 deletions snforge_std/Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ version = 1

[[package]]
name = "snforge_scarb_plugin"
version = "0.1.0"
version = "0.31.0"

[[package]]
name = "snforge_std"
version = "0.30.0"
version = "0.31.0"
dependencies = [
"snforge_scarb_plugin",
]
2 changes: 1 addition & 1 deletion snforge_std/Scarb.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "snforge_std"
version = "0.30.0"
version = "0.31.0"
edition = "2023_10"

[dependencies]
Expand Down

0 comments on commit 249f1e9

Please sign in to comment.