File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -85,25 +85,25 @@ check go.mod "^go\s\+$version_regex" "$go_previous_version"
85
85
check internal/tools/go.mod " ^go\s\+$version_regex " " $go_latest_version "
86
86
87
87
# 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
92
92
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/")
94
94
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
102
102
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
+ # }
105
105
106
- check_dockerfile docker/debug/Dockerfile " ^.*golang:$version_regex " " $go_latest_version "
106
+ check docker/debug/Dockerfile " ^.*golang:$version_regex " " $go_latest_version "
107
107
108
108
IFS=' |' read -r -a gha_workflows <<< " $(grep -rl go-version .github | tr '\n' '|')"
109
109
for gha_workflow in " ${gha_workflows[@]} " ; do
You can’t perform that action at this time.
0 commit comments