+++ This bug was initially created as a clone of Bug #1909464 +++ operator-registry is the only OpenShift container currently building with golang 1.14 due to cross-compilation issues with 1.15. Now that golang-builder has been updated to 1.15.5, which fixes the darwin cross-compile issue, adding a workaround for https://github.com/golang/go/issues/40795 to the windows build will allow switching to 1.15.
1, This base image contains the fixed PR: [root@preserve-olm-env data]# docker inspect registry-proxy.engineering.redhat.com/rh-osbs/openshift-ose-operator-registry:v4.6|grep "io.openshift.build" "io.openshift.build.commit.id": "56a73fe509cde3eb89c3d73e6e243cb66403c93f", "io.openshift.build.commit.url": "https://github.com/openshift/images/commit/56a73fe509cde3eb89c3d73e6e243cb66403c93f", "io.openshift.build.source-location": "https://github.com/openshift/images", "io.openshift.build.commit.id": "4c884cc4e9321a66144f02f81a967dd2706828f2", "io.openshift.build.commit.url": "https://github.com/operator-framework/operator-registry/commit/4c884cc4e9321a66144f02f81a967dd2706828f2", "io.openshift.build.source-location": "https://github.com/operator-framework/operator-registry", 2, Create a CatalogSource image by using above base image. [root@preserve-olm-env data]# oc adm catalog build --appregistry-org="olmqe" --auth-token="basic xxx" --from="registry-proxy.engineering.redhat.com/rh-osbs/openshift-ose-operator-registry:v4.6" --to=quay.io/olmqe/art:4.6 using registry-proxy.engineering.redhat.com/rh-osbs/openshift-ose-operator-registry:v4.6 as a base image for buildingINFO[0003] loading Bundles dir=/tmp/cache-386259139/manifests-403778152 ... Uploading 144.4MB ... Pushed sha256:a0f8c56861a59a4adf72cf8d0f50f9b83b30d6f01f452bdd00721811f7216987 to quay.io/olmqe/art:4.6 3, Create a CatalogSoruce CR to consume this image. [root@preserve-olm-env data]# cat cs.yaml apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: name: olm namespace: openshift-marketplace spec: displayName: OLM Operators image: quay.io/olmqe/art:4.6 publisher: OLM QE sourceType: grpc [root@preserve-olm-env data]# oc create -f cs.yaml catalogsource.operators.coreos.com/olm created 4, Check the packagemanifest [root@preserve-olm-env data]# oc get packagemanifest|grep OLM couchbase-enterprise-test OLM Operators 48s descheduler-test OLM Operators 48s LGTM, verify it.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (OpenShift Container Platform 4.6.19 bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:0634