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

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 4.22.0
    • Networking / ptp
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Bonnie Block Bonnie Block
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: