From eb5251918ac75ff33df61869f3b27ad13c334eae Mon Sep 17 00:00:00 2001 From: wasup-yash Date: Thu, 15 Aug 2024 07:03:43 +0530 Subject: [PATCH] removed docker func Signed-off-by: wasup-yash --- scripts/check-go-version.sh | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/scripts/check-go-version.sh b/scripts/check-go-version.sh index 881fcf4ec60..a32e6e7254e 100755 --- a/scripts/check-go-version.sh +++ b/scripts/check-go-version.sh @@ -83,26 +83,6 @@ function check() { check go.mod "^go\s\+$version_regex" "$go_previous_version" check internal/tools/go.mod "^go\s\+$version_regex" "$go_latest_version" - -# Patch Version Handling in Dockerfile -# check_dockerfile() { -# local file=$1 -# local pattern=$2 -# local target=$3 - -# go_version=$(grep -e "$pattern" "$file" | head -1 | sed "s/^.*golang:\($version_regex\.[0-9]*\).*$/\1/") - -# if [[ "$go_version" != "$target" ]]; then -# if [[ "$go_version" =~ $version_regex\.[0-9]+ ]]; then -# echo "Patch version detected in $file ($go_version). Manual update required." -# exit 1 -# fi -# files_to_update=$((files_to_update+1)) -# fi - -# printf "%-50s Go version: %s %s\n" "$file" "$go_version" "${mismatch:-}" -# } - check docker/debug/Dockerfile "^.*golang:$version_regex" "$go_latest_version" IFS='|' read -r -a gha_workflows <<< "$(grep -rl go-version .github | tr '\n' '|')"