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

OKD builds fail with invalid GOTOOLCHAIN 'gov1.24.11'

XMLWordPrintable

    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Proposed
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      OKD builds for ose-aws-pod-identity-webhook fail during the Go build step with:

      go: invalid GOTOOLCHAIN "gov1.24.11" 

      The golang builder base image sets GO_VERSION=v1.24.11 (with "v" prefix). The hack/setup-go.sh script creates GOTOOLCHAIN=go${GO_VERSION} without stripping the  prefix, resulting in invalid value "gov1.24.11". This bug was masked in OpenShift builds  because the Go compliance shim forces GOTOOLCHAIN=local. OKD builds are exempt from compliance enforcement, exposing the issue.
       
      Fix: Strip "v" prefix from GO_VERSION before constructing GOTOOLCHAIN.
       

              jstuever@redhat.com Jeremiah Stuever
              dpaolell@redhat.com Daniele Paolella
              None
              None
              Jianping Shu Jianping Shu
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: