Skip to content

Commit c1b26e6

Browse files
committed
chore: bump all crate versions to 0.2.1
Patch release fixing: - Git progress output no longer corrupts indicatif progress bars during east update (concurrent fetch/clone uses quiet mode) - east init -m shows git clone progress (single interactive clone) - Added scripts/bump-version.sh for automated version bumping https://claude.ai/code/session_01XPaw9o6u8dbEfgjyyVNays
1 parent 4aae5c0 commit c1b26e6

10 files changed

Lines changed: 88 additions & 24 deletions

File tree

Cargo.lock

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

crates/east-build/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "east-build-util"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
edition.workspace = true
55
license.workspace = true
66
repository.workspace = true

crates/east-cli/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "east-cli"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
edition.workspace = true
55
license.workspace = true
66
repository.workspace = true
@@ -12,11 +12,11 @@ path = "src/main.rs"
1212

1313
[dependencies]
1414
clap.workspace = true
15-
east-command = { version = "0.2.0", path = "../east-command" }
16-
east-config = { version = "0.2.0", path = "../east-config" }
17-
east-manifest = { version = "0.2.0", path = "../east-manifest" }
18-
east-vcs = { version = "0.2.0", path = "../east-vcs" }
19-
east-workspace = { version = "0.2.0", path = "../east-workspace" }
15+
east-command = { version = "0.2.1", path = "../east-command" }
16+
east-config = { version = "0.2.1", path = "../east-config" }
17+
east-manifest = { version = "0.2.1", path = "../east-manifest" }
18+
east-vcs = { version = "0.2.1", path = "../east-vcs" }
19+
east-workspace = { version = "0.2.1", path = "../east-workspace" }
2020
indicatif.workspace = true
2121
miette.workspace = true
2222
serde_yaml.workspace = true

crates/east-command/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
22
name = "east-command"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
edition.workspace = true
55
license.workspace = true
66
repository.workspace = true
77
description = "Command trait, extension discovery, and template engine for east"
88

99
[dependencies]
10-
east-config = { version = "0.2.0", path = "../east-config" }
11-
east-manifest = { version = "0.2.0", path = "../east-manifest" }
10+
east-config = { version = "0.2.1", path = "../east-config" }
11+
east-manifest = { version = "0.2.1", path = "../east-manifest" }
1212
miette.workspace = true
1313
thiserror.workspace = true
1414
tracing.workspace = true

crates/east-config/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "east-config"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
edition.workspace = true
55
license.workspace = true
66
repository.workspace = true

crates/east-manifest/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "east-manifest"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
edition.workspace = true
55
license.workspace = true
66
repository.workspace = true

crates/east-runner/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "east-runner"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
edition.workspace = true
55
license.workspace = true
66
repository.workspace = true

crates/east-vcs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "east-vcs"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
edition.workspace = true
55
license.workspace = true
66
repository.workspace = true

crates/east-workspace/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[package]
22
name = "east-workspace"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
edition.workspace = true
55
license.workspace = true
66
repository.workspace = true
77
description = ".east/ directory, workspace discovery, and state for east"
88

99
[dependencies]
10-
east-config = { version = "0.2.0", path = "../east-config" }
10+
east-config = { version = "0.2.1", path = "../east-config" }
1111
thiserror.workspace = true
1212

1313
[dev-dependencies]

scripts/bump-version.sh

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#!/usr/bin/env bash
2+
# Bump all crate versions in the workspace to the specified version.
3+
# Usage: ./scripts/bump-version.sh 0.2.1
4+
#
5+
# This updates:
6+
# - [package] version in all member crates
7+
# - Inter-crate dependency version references
8+
#
9+
# After running, commit and tag:
10+
# git add -A && git commit -m "chore: bump all crate versions to $VERSION"
11+
# git tag "v$VERSION"
12+
# git push origin main --tags
13+
14+
set -euo pipefail
15+
16+
if [ $# -ne 1 ]; then
17+
echo "Usage: $0 <version>"
18+
echo "Example: $0 0.2.1"
19+
exit 1
20+
fi
21+
22+
NEW_VERSION="$1"
23+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
24+
ROOT_DIR="$(dirname "$SCRIPT_DIR")"
25+
26+
# Validate version format (semver)
27+
if ! echo "$NEW_VERSION" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.]+)?$'; then
28+
echo "Error: version must be semver (e.g. 0.2.1, 1.0.0-beta.1)"
29+
exit 1
30+
fi
31+
32+
echo "Bumping all crate versions to $NEW_VERSION..."
33+
34+
# Get current version from any crate (they should all be the same)
35+
CURRENT_VERSION=$(grep -m1 '^version = ' "$ROOT_DIR/crates/east-manifest/Cargo.toml" | sed 's/version = "\(.*\)"/\1/')
36+
echo "Current version: $CURRENT_VERSION"
37+
echo "New version: $NEW_VERSION"
38+
39+
if [ "$CURRENT_VERSION" = "$NEW_VERSION" ]; then
40+
echo "Already at version $NEW_VERSION, nothing to do."
41+
exit 0
42+
fi
43+
44+
# Update [package] version in all member crates
45+
for toml in "$ROOT_DIR"/crates/*/Cargo.toml; do
46+
sed -i "s/^version = \"$CURRENT_VERSION\"/version = \"$NEW_VERSION\"/" "$toml"
47+
done
48+
49+
# Update inter-crate dependency version references
50+
# Pattern: east-xxx = { version = "OLD", path = "..." }
51+
for toml in "$ROOT_DIR"/crates/*/Cargo.toml; do
52+
sed -i "s/version = \"$CURRENT_VERSION\", path/version = \"$NEW_VERSION\", path/g" "$toml"
53+
done
54+
55+
echo "Done. Updated files:"
56+
git -C "$ROOT_DIR" diff --name-only 2>/dev/null || find "$ROOT_DIR/crates" -name "Cargo.toml" -newer "$0"
57+
58+
echo ""
59+
echo "Next steps:"
60+
echo " cd $ROOT_DIR"
61+
echo " cargo check --workspace"
62+
echo " git add -A && git commit -m 'chore: bump all crate versions to $NEW_VERSION'"
63+
echo " git tag v$NEW_VERSION"
64+
echo " git push origin main --tags"

0 commit comments

Comments
 (0)