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

Installer module sum cannot be verified

XMLWordPrintable

    • Important
    • None
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      The installer Go module cannot be verified by the Go Checksum Database which prevents other packages from importing and vendoring installer code. Simple example from a toy repo, which imports a single package from pkg/types:

      $ go get github.com/openshift/installer@v0.9.0-master.0.20240912103450-dcf8320c8c4e
      github.com/openshift/installer@v0.9.0-master.0.20240912103450-dcf8320c8c4e: verifying module: github.com/openshift/installer@v0.9.0-master.0.20240912103450-dcf8320c8c4e: reading https://sum.golang.org/lookup/github.com/openshift/installer@v0.9.0-master.0.20240912103450-dcf8320c8c4e: 404 Not Found
          server response: not found: 

      where github.com/openshift/installer@v0.9.0-master.0.20240912103450-dcf8320c8c4e is a pseudo-version currently being imported by hive.

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

          

      How reproducible:

          Sometimes. Certain pseudo versions seem to work. Trying to go get the pseudo version used by hive linked above seems to consistently fail (as the sum is not in the db) although other users have reported success.

      Steps to Reproduce:

          1. Create a simple go repo that imports an installer package, say from pkg/types
          2.  go get github.com/openshift/installer@v0.9.0-master.0.20240912103450-dcf8320c8c4e     
      
      Alternatively, you can vendor github.com/openshift/hive/apis/hive/v1/gcp@master which indirectly includes this pseudo-version and produces the same results.     

      Actual results:

          

      Expected results:

          

      Additional info:

          

      slack xref: https://redhat-internal.slack.com/archives/C06EFSL9J93/p1727187931428969?thread_ts=1725919209.874569&cid=C06EFSL9J93

              padillon Patrick Dillon
              padillon Patrick Dillon
              Gaoyun Pei Gaoyun Pei
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: