Skip to content

Commit 237c1ab

Browse files
authored
Remove outdated version validation (#4042)
Version information is automatically included, so this validation should be removed.
1 parent 160151b commit 237c1ab

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

release.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,6 @@ if ! go version | cut -d" " -f3 | grep -q "$GO_VER"; then
3333
exit 1
3434
fi
3535

36-
# Detect whether versions in code were updated.
37-
VER_FILE="internal/version/version.go"
38-
CURR_VER="$(sed -nr 's|\s+Version\s+= "(.+)"|\1|p' "$VER_FILE" | tr -d ' \t\n')"
39-
if [[ "$VER" != "$CURR_VER" ]]; then
40-
echo "version is not set correctly in $VER_FILE"
41-
exit 1
42-
fi
43-
4436
INSTALL_GUIDE_FILE="website/content/en/docs/installation/install-operator-sdk.md"
4537
CURR_VER_INSTALL_GUIDE_FILE="$(sed -nr 's/.*RELEASE_VERSION=(.+)/\1/p' "$INSTALL_GUIDE_FILE" | tr -d ' \t\n')"
4638
if [[ "$VER" != "$CURR_VER_INSTALL_GUIDE_FILE" ]]; then

0 commit comments

Comments
 (0)