Skip to content

Commit

Permalink
removed docker func
Browse files Browse the repository at this point in the history
Signed-off-by: wasup-yash <[email protected]>
  • Loading branch information
wasup-yash committed Aug 15, 2024
1 parent 098e386 commit eb52519
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions scripts/check-go-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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' '|')"
Expand Down

0 comments on commit eb52519

Please sign in to comment.