https://github.com/openshift/oc/blob/master/Makefile#L6-L7 namely: github.com/openshift/oc/vendor/k8s.io/kubernetes/pkg/version.gitVersion="v1.14.0+724e12f93f" github.com/openshift/oc/vendor/k8s.io/kubernetes/pkg/version.gitCommit="$(shell git rev-parse --short "HEAD^{commit}" 2>/dev/null)" \ are problematic. The first line, I think depends on the second line. The other problem is that when we do official builds the git commit is set via an env var, because we are building from a tar file, not from a git tree. So we need a way to overwrite...
you are right - line 7 should support env var for ART build (we have already made such changes in the shared build system for regular package version). The line 6 is hardcoded to the rebase of kube, we wan't to parse it from glide/go mod next time
https://github.com/openshift/oc/pull/31
From the build log http://download.eng.bos.redhat.com/brewroot/packages/openshift-enterprise-cli-container/v4.2.0/201907281300/data/logs/x86_64.log, We could verify this bug.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:2922