Hi, I successfully built the oc tool from source, but when I run oc version it reports Client Version: v4.2.0-alpha.0-1997-g0c63f9d. However, I am at the tag openshift-clients-4.14.0-202310201027.
I looked for the cause and found that during make oc, the command git describe --long --tags --abbrev=7 --match 'v[0-9]*' || echo 'v0.0.0-unknown-$(SOURCE_GIT_COMMIT)' is run. It looks for the latest tag in v<version> format. However, the last tag, that satisfies this format, is v4.2.0-alpha.0.
I know I can get around this by setting SOURCE_GIT_TAG or OS_GIT_VERSION to v4.14.0, but for me the correct solution seems to be adding appropriate tags to make the auto-detection work.
Hi, I successfully built the
octool from source, but when I runoc versionit reportsClient Version: v4.2.0-alpha.0-1997-g0c63f9d. However, I am at the tagopenshift-clients-4.14.0-202310201027.I looked for the cause and found that during
make oc, the commandgit describe --long --tags --abbrev=7 --match 'v[0-9]*' || echo 'v0.0.0-unknown-$(SOURCE_GIT_COMMIT)'is run. It looks for the latest tag inv<version>format. However, the last tag, that satisfies this format, isv4.2.0-alpha.0.I know I can get around this by setting
SOURCE_GIT_TAGorOS_GIT_VERSIONtov4.14.0, but for me the correct solution seems to be adding appropriate tags to make the auto-detection work.