How to build openshift4 installer for libvirt?

Solution Verified - Updated -

Issue

  • How to build openshift installer for libvirt?
  • Getting below go error while building openshift-install binary
[root@host installer]# TAGS=libvirt hack/build.sh
+ minimum_go_version=1.12
++ go version
++ cut -d ' ' -f 3
+ current_go_version=go1.13.3
++ version 1.13.3
++ IFS=.
++ printf '%03d%03d%03d\n' 1 13 3
++ unset IFS
++ version 1.12
++ IFS=.
++ printf '%03d%03d%03d\n' 1 12
++ unset IFS
+ '[' 001013003 -lt 001012000 ']'
+ LAUNCH_PATH=/usr/local/go/src/github.com/openshift/installer
++ dirname hack/build.sh
+ cd hack/..
++ go list -e -f '{{.Dir}}' github.com/openshift/installer
go: inconsistent vendoring in /usr/local/go/src:
    go.mod requires golang.org/dl v0.0.0-20191111193948-37d848e6a9e1 but vendor/modules.txt does not include it.
    run 'go mod tidy; go mod vendor' to sync
+ PACKAGE_PATH=

Environment

  • Openshift Container platform 4 for libvirt

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content