We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0931d5b commit 10e870cCopy full SHA for 10e870c
hack/tools/check-go-version.sh
@@ -63,7 +63,8 @@ for f in $(find . -name "*.mod"); do
63
old=${old#go }
64
new=$(git grep -ohP '^go .*$' "${f}")
65
new=${new#go }
66
- if [ "${new}" != "${old}" ]; then
+ # If ${old} is empty, it means this is a new file
67
+ if [ "${new}" != "${old}" -a -n "${old}" ]; then
68
echo "${f}: ${v}: Updated golang version from ${old}"
69
RETCODE=1
70
fi
0 commit comments