Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-25464

[2169361] Mismatch of golang version in downstream virtctl builds

XMLWordPrintable

    • No

      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:

              fmatousc@redhat.com Felix Matouschek
              fmatousc@redhat.com Felix Matouschek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: