Skip to content

Commit 53e8ee0

Browse files
committed
remove the docker func
Signed-off-by: wasup-yash <[email protected]>
1 parent 9f7856f commit 53e8ee0

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

scripts/check-go-version.sh

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -85,25 +85,25 @@ check go.mod "^go\s\+$version_regex" "$go_previous_version"
8585
check internal/tools/go.mod "^go\s\+$version_regex" "$go_latest_version"
8686

8787
# Patch Version Handling in Dockerfile
88-
check_dockerfile() {
89-
local file=$1
90-
local pattern=$2
91-
local target=$3
88+
# check_dockerfile() {
89+
# local file=$1
90+
# local pattern=$2
91+
# local target=$3
9292

93-
go_version=$(grep -e "$pattern" "$file" | head -1 | sed "s/^.*golang:\($version_regex\.[0-9]*\).*$/\1/")
93+
# go_version=$(grep -e "$pattern" "$file" | head -1 | sed "s/^.*golang:\($version_regex\.[0-9]*\).*$/\1/")
9494

95-
if [[ "$go_version" != "$target" ]]; then
96-
if [[ "$go_version" =~ $version_regex\.[0-9]+ ]]; then
97-
echo "Patch version detected in $file ($go_version). Manual update required."
98-
exit 1
99-
fi
100-
files_to_update=$((files_to_update+1))
101-
fi
95+
# if [[ "$go_version" != "$target" ]]; then
96+
# if [[ "$go_version" =~ $version_regex\.[0-9]+ ]]; then
97+
# echo "Patch version detected in $file ($go_version). Manual update required."
98+
# exit 1
99+
# fi
100+
# files_to_update=$((files_to_update+1))
101+
# fi
102102

103-
printf "%-50s Go version: %s %s\n" "$file" "$go_version" "${mismatch:-}"
104-
}
103+
# printf "%-50s Go version: %s %s\n" "$file" "$go_version" "${mismatch:-}"
104+
# }
105105

106-
check_dockerfile docker/debug/Dockerfile "^.*golang:$version_regex" "$go_latest_version"
106+
check docker/debug/Dockerfile "^.*golang:$version_regex" "$go_latest_version"
107107

108108
IFS='|' read -r -a gha_workflows <<< "$(grep -rl go-version .github | tr '\n' '|')"
109109
for gha_workflow in "${gha_workflows[@]}"; do

0 commit comments

Comments
 (0)