Description of problem: Upstream sources of virtctl expect the golang 1.19 featureset to be available but downstream builds of virtctl still use older versions of golang (RHEL8/9 -> golang 1.18, RHEL7 -> golang 1.17). This breaks builds when using language features not available in older golang versions. (see [1] for an example) As a start my suggestion is to drop virtctl support for RHEL7, because the OpenShift CLI client already dropped RHEL7 support in version 4.11. (see [2]) Further we should try to better keep golang versions between upstream and downstream builds in sync. [1]: https://github.com/kubevirt/kubevirt/pull/9086 [2]: https://access.redhat.com/articles/6968945 Version-Release number of selected component (if applicable): 4.13 How reproducible: Always Steps to Reproduce: 1. Try to build virtctl with golang version 1.17 or older 2. 3. Actual results: The build fails because latest virtctl sources use language features not available in golang 1.17 / RHEL 7 builds. Expected results: The build succeeds because the required golang featureset is available. or No builds with old golang versions of sources requiring later golang versions. Additional info:
Builds of virtctl for RHEL7 and RHEL9 are dropped in CNV 4.14. This leaves us with RHEL8 builds, which currently do not have this issue.
All build of 4.14 are el8 from now on - https://brewweb.engineering.redhat.com/brew/packageinfo?buildStart=250&packageID=67566&buildOrder=-completion_time&tagOrder=name&tagStart=0#buildlist
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 (Important: OpenShift Virtualization 4.14.0 Images security and bug fix update), 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/RHSA-2023:6817