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

e2e installs wrong lib versions

XMLWordPrintable

    • None
    • CLID Sprint 265
    • 1
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required
    • In Progress

      Description of problem:

          Our e2e setup `go install` a few packages with the `@latest` tag. `go install` does not take `go.mod` into consideration, so in older branches we can pull package versions not compatible with the system Go version. 

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

          All branches using Go < 1.23

      How reproducible:

          always on branch <= 4.18

      Steps to Reproduce:

          1. 
          2.
          3.
          

      Actual results:

                      ./test/e2e/e2e-simple.sh ././bin/oc-mirror
                      /go/src/github.com/openshift/oc-mirror/test/e2e/operator-test.17343 /go/src/github.com/openshift/oc-mirror
                      go: downloading github.com/google/go-containerregistry v0.20.3
                      go: github.com/google/go-containerregistry/cmd/crane@latest: github.com/google/go-containerregistry@v0.20.3 requires go >= 1.23.0 (running go 1.22.9; GOTOOLCHAIN=local)             
                      /go/src/github.com/openshift/oc-mirror/test/e2e/lib/util.sh: line 17: PID_DISCONN: unbound variable
                    
          
      https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/openshift_oc-mirror/1006/pull-ci-openshift-oc-mirror-release-4.18-e2e/1879913390239911936

      Expected results:

          The package version selected is compatible with the system Go version.

      Additional info:

          

              rdossant Rafael Fonseca dos Santos
              rdossant Rafael Fonseca dos Santos
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: