velero: Cannot install velero with go get + go install

What steps did you take and what happened:

$ GO111MODULE=on go get -v -u github.com/vmware-tanzu/velero
go get: github.com/vmware-tanzu/velero@v1.5.1 requires
        github.com/kubernetes-csi/external-snapshotter/v2@v2.2.0-rc1 requires
        k8s.io/kubernetes@v1.18.0 requires
        k8s.io/api@v0.0.0: reading k8s.io/api/go.mod at revision v0.0.0: unknown revision v0.0.0

$ cd $(go env GOPATH)/src/github.com/vmware-tanzu/velero
$ go install .
go: github.com/kubernetes-csi/external-snapshotter/v2@v2.2.0-rc1 requires
        k8s.io/kubernetes@v1.18.0 requires
        k8s.io/kubectl@v0.0.0 requires
        vbom.ml/util@v0.0.0-20160121211510-db5cfe13f5cc: unrecognized import path "vbom.ml/util": https fetch: Get "https://vbom.ml/util?go-get=1": dial tcp: lookup vbom.ml on XXXXXXXX:53: no such host

What did you expect to happen: that the velero cli will be installed successfully

Environment: running inside a fedora container with go installed

  • OS (e.g. from /etc/os-release):

$ cat /etc/os-release NAME=Fedora VERSION=“32 (Container Image)” ID=fedora VERSION_ID=32 VERSION_CODENAME=“” PLATFORM_ID=“platform:f32” PRETTY_NAME=“Fedora 32 (Container Image)” ANSI_COLOR=“0;34” LOGO=fedora-logo-icon CPE_NAME=“cpe:/o:fedoraproject:fedora:32” HOME_URL=“https://fedoraproject.org/” DOCUMENTATION_URL=“https://docs.fedoraproject.org/en-US/fedora/f32/system-administrators-guide/” SUPPORT_URL=“https://fedoraproject.org/wiki/Communicating_and_getting_help” BUG_REPORT_URL=“https://bugzilla.redhat.com/” REDHAT_BUGZILLA_PRODUCT=“Fedora” REDHAT_BUGZILLA_PRODUCT_VERSION=32 REDHAT_SUPPORT_PRODUCT=“Fedora” REDHAT_SUPPORT_PRODUCT_VERSION=32 PRIVACY_POLICY_URL=“https://fedoraproject.org/wiki/Legal:PrivacyPolicy” VARIANT=“Container Image” VARIANT_ID=container

Vote on this issue!

This is an invitation to the Velero community to vote on issues, you can see the project’s top voted issues listed here.
Use the “reaction smiley face” up to the right of this comment to vote.

  • 👍 for “I would like to see this bug fixed as soon as possible”
  • 👎 for “There are more important bugs to focus on right now”

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 4
  • Comments: 18 (14 by maintainers)

Commits related to this issue

Most upvoted comments

I used the following workaround on my go.mod (as pointed in a previous comment by @pires ): https://github.com/vmware-tanzu/velero-plugin-for-vsphere/blob/master/go.mod#L28-L68

I added all these “replace” directives as specified on this file.

I will do my best and will consult when necessary. Sign me up!