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

[openshift-4.20] ptp-operator can't be built hermetically

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 4.20.z
    • Networking / ptp
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • In Progress
    • Release Note Not Required
    • None
    • None
    • None
    • None
    • None

      This is a clone of issue OCPBUGS-76494. The following is the description of the original issue:

      Description of problem:

      ART can't build ptp-operator hermetically.
      The following is the error:

          cannot find package "github.com/k8snetworkplumbingwg/ptp-operator" in any of:
      	/usr/lib/golang/src/github.com/k8snetworkplumbingwg/ptp-operator (from $GOROOT)
      	/cachi2/output/deps/gomod/src/github.com/k8snetworkplumbingwg/ptp-operator (from $GOPATH)

      In the Dockerfile we use the following env var is set to "off" 

      ENV GO111MODULE=off 

      changing it to "auto" 

      ENV GO111MODULE=auto

      makes us able to build the ptp-operator hermetically.

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

       

          

      How reproducible:

          

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

          

      Expected results:

          

      Additional info:

          

              josricha@redhat.com Joseph Richard
              rh-ee-fgallott Fabio Gallotti
              None
              None
              Yang Liu Yang Liu
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: