From 66b8828af1e59f110237427bcaf1ac812d7ff2f8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 30 Jul 2026 12:17:45 +0000 Subject: [PATCH] fix: replace grep -P with grep -E + sed for macOS compatibility in sync-compat.sh Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- scripts/sync-compat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sync-compat.sh b/scripts/sync-compat.sh index 0c2d4ba5004..116725cb338 100755 --- a/scripts/sync-compat.sh +++ b/scripts/sync-compat.sh @@ -33,7 +33,7 @@ for arg in "$@"; do done # Extract DefaultCopilotVersion from Go constants file -COPILOT_VERSION=$(grep -oP '^\s*const DefaultCopilotVersion\s+Version\s*=\s*"\K[^"]+' "$CONSTANTS_FILE") +COPILOT_VERSION=$(grep -E '^\s*const DefaultCopilotVersion' "$CONSTANTS_FILE" | sed -E 's/.*"([^"]+)".*/\1/') if [ -z "$COPILOT_VERSION" ]; then echo "Error: could not extract DefaultCopilotVersion from $CONSTANTS_FILE" >&2 exit 1