Merge pull request #7696 from jwhonce/wip/version

Refactor version handling in cmd tree
This commit is contained in:
OpenShift Merge Robot
2020-09-21 13:23:20 +00:00
committed by GitHub
11 changed files with 29 additions and 19 deletions

View File

@ -27,7 +27,7 @@ LAST_TAG=$(git describe --tags --abbrev=0)
write_go_version()
{
LOCAL_VERSION="$1"
sed -i "s/^\(const Version = \"\).*/\1${LOCAL_VERSION}\"/" version/version.go
sed -i "s/^\(var Version = semver.MustParse\( \"\).*/\1${LOCAL_VERSION}\"\)/" version/version.go
}
write_spec_version()