Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-43383

Cloud provider vsphere can fail when running goimports through fmt make target

XMLWordPrintable

      Description of problem:

          Running "make fmt" in the repository fails with an error about a version mismatch between goimports and the go language version.

      Version-Release number of selected component (if applicable):

          4.16

      How reproducible:

          always

      Steps to Reproduce:

          1. checkout release-4.16 branch
          2. run "make fmt" (with golang version 1.21)
          

      Actual results:

      openshift-hack/check-fmt.sh
      go: downloading golang.org/x/tools v0.26.0
      go: golang.org/x/tools/cmd/goimports@latest: golang.org/x/tools@v0.26.0 requires go >= 1.22.0 (running go 1.21.11; GOTOOLCHAIN=local)
      make: *** [openshift.mk:18: fmt] Error 1
      

      Expected results:

          completion without errors

      Additional info:

      this is affecting us currently with 4.16 and previous, but will become a persistent problem over time.
      
      we can correct this by using a holistic approach such as calling goimports from the binary that is included in our build images.

              mimccune@redhat.com Michael McCune
              mimccune@redhat.com Michael McCune
              Zhaohua Sun Zhaohua Sun
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: