Skip to content

Commit a4eafc7

Browse files
authored
release/v0.8.1 (#448)
* fix: cross-platform compatibility in change_version script * chore: set version 0.8.1
1 parent d8ac0f7 commit a4eafc7

3 files changed

Lines changed: 14 additions & 9 deletions

File tree

Cargo.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ resolver = "2"
1313

1414
[workspace.package]
1515
edition = "2021"
16-
version = "0.8.0"
16+
version = "0.8.1"
1717
rust-version = "1.86"
1818
authors = ["Flashbots"]
1919
license = "MIT OR Apache-2.0"

scripts/1_change-version.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ version="$1"
1111
echo "version: $version"
1212

1313
# update workspace.package.version in Cargo.toml
14-
sed -i "s/^version = \".*\"/version = \"$version\"/" Cargo.toml
14+
# Use -i'' for macOS compatibility (GNU sed ignores the empty string, BSD sed requires it)
15+
if [[ "$OSTYPE" == "darwin"* ]]; then
16+
sed -i '' "s/^version = \".*\"/version = \"$version\"/" Cargo.toml
17+
else
18+
sed -i "s/^version = \".*\"/version = \"$version\"/" Cargo.toml
19+
fi
1520

1621
echo "finished."
1722
git status

0 commit comments

Comments
 (0)