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

OKD builds fail with invalid GOTOOLCHAIN 'gov1.24.11' for etcd

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.22
    • Etcd
    • None
    • None
    • False
    • Hide

      None

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

      OKD builds for ose-installer-etcd-artifacts 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 scripts/test_lib.sh determine_go_version() function 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:
      GOTOOLCHAIN="go${GO_VERSION#v}"
       

              dwest@redhat.com Dean West
              dpaolell@redhat.com Daniele Paolella
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: