Skip to content

Commit e82a315

Browse files
fix: correct path to cortex-cli Cargo.toml in check-cli-version.sh
The script was looking for cortex-cli/Cargo.toml at the repository root, but the crate is actually located at src/cortex-cli/Cargo.toml per the workspace configuration. This caused the version validation check to be silently skipped, as the file existence check failed. Changes: - Updated CORTEX_CLI_CARGO path from cortex-cli/Cargo.toml to src/cortex-cli/Cargo.toml Fixes: PlatformNetwork/bounty-challenge#47866
1 parent f29ddd7 commit e82a315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/check-cli-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ WORKSPACE_VERSION=$(grep -A20 '^\[workspace\.package\]' "$CARGO_TOML" | grep '^v
4848
echo "Workspace Cargo.toml: $WORKSPACE_VERSION"
4949

5050
# Also check cortex-cli/Cargo.toml uses workspace version
51-
CORTEX_CLI_CARGO="$REPO_ROOT/cortex-cli/Cargo.toml"
51+
CORTEX_CLI_CARGO="$REPO_ROOT/src/cortex-cli/Cargo.toml"
5252
if [ -f "$CORTEX_CLI_CARGO" ]; then
5353
CLI_VERSION_LINE=$(grep '^version' "$CORTEX_CLI_CARGO" | head -1)
5454
if [[ "$CLI_VERSION_LINE" == *"workspace = true"* ]]; then

0 commit comments

Comments
 (0)