Skip to content

Commit 0702b57

Browse files
committed
fix: add missing update_core_version function
- Add the missing update_core_version function to the release script - This function updates only the vtcode-core Cargo.toml file - Fixes the 'command not found' error when specifying custom vtcode-core version
1 parent 150d9b1 commit 0702b57

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/release.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,17 @@ update_version() {
164164
print_success "Updated version to $new_version in all package files"
165165
}
166166

167+
# Function to update vtcode-core version only
168+
update_core_version() {
169+
local new_version=$1
170+
171+
# Update vtcode-core Cargo.toml only
172+
sed -i.bak "s/^version = \".*\"/version = \"$new_version\"/" vtcode-core/Cargo.toml
173+
rm vtcode-core/Cargo.toml.bak
174+
175+
print_success "Updated vtcode-core version to $new_version"
176+
}
177+
167178
# Function to validate package metadata
168179
validate_metadata() {
169180
print_info "Validating package metadata..."

0 commit comments

Comments
 (0)