Giter Club home page Giter Club logo

Comments (2)

andreaskaris avatar andreaskaris commented on September 6, 2024 1

Yep, but as discussed, either we'd need to fail on "golang version too low" or we'd fix this with the aforementioned workaround ;-)

from sriov-network-operator.

mrVectorz avatar mrVectorz commented on September 6, 2024

Your golang version is too old.
Tested on your host with go1.15.3 and it worked.

root@openshift-jumpserver-0 ~]# yum remove golang -y
(...)
Removed:
  golang-1.13.15-1.module+el8.2.0+7662+fa98b974.x86_64  golang-bin-1.13.15-1.module+el8.2.0+7662+fa98b974.x86_64  golang-src-1.13.15-1.module+el8.2.0+7662+fa98b974.noarch  keyutils-libs-devel-1.5.10-6.el8.x86_64  krb5-devel-1.17-18.el8.x86_64   libcom_err-devel-1.45.4-3.el8.x86_64  libkadm5-1.17-18.el8.x86_64    
  libselinux-devel-2.9-3.el8.x86_64                     libsepol-devel-2.9-1.el8.x86_64                           libverto-devel-0.3.0-5.el8.x86_64                         openssl-devel-1:1.1.1c-15.el8.x86_64     pcre2-devel-10.32-1.el8.x86_64  pcre2-utf16-10.32-1.el8.x86_64        pcre2-utf32-10.32-1.el8.x86_64 
  zlib-devel-1.2.11-13.el8.x86_64                      

Complete!
[root@openshift-jumpserver-0 ~]#

Then installed the new one:

[root@openshift-jumpserver-0 ~]# rm -Rf golang
[root@openshift-jumpserver-0 ~]# mkdir golang
[root@openshift-jumpserver-0 ~]# curl -k -L https://golang.org/dl/go1.15.3.linux-amd64.tar.gz -o go1.15.3.linux-amd64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    75  100    75    0     0    806      0 --:--:-- --:--:-- --:--:--   815
100  115M  100  115M    0     0  92.6M      0  0:00:01  0:00:01 --:--:--  111M
[root@openshift-jumpserver-0 ~]# tar -C /root/go/ -xzf go1.15.3.linux-amd64.tar.gz
[root@openshift-jumpserver-0 ~]# export GOPATH=/root/golang/
[root@openshift-jumpserver-0 ~]# export PATH=$PATH:/root/go/bin/
[root@openshift-jumpserver-0 ~]# go get github.com/openshift/sriov-network-operator


[root@openshift-jumpserver-0 ~]# cd $GOPATH/src/github.com/openshift/sriov-network-operator/
[root@openshift-jumpserver-0 sriov-network-operator]# make deploy-setup
which: no controller-gen in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/go/bin:/root/golang/bin:/root/go/bin/)
which: no kustomize in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/go/bin:/root/golang/bin:/root/go/bin/)
go: creating new go.mod: module tmp
go: downloading sigs.k8s.io/controller-tools v0.3.0
go: found sigs.k8s.io/controller-tools/cmd/controller-gen in sigs.k8s.io/controller-tools v0.3.0
go: downloading k8s.io/apimachinery v0.18.2
go: downloading golang.org/x/tools v0.0.0-20190920225731-5eefd052ad72
go: downloading k8s.io/api v0.18.2
go: downloading github.com/fatih/color v1.7.0
go: downloading sigs.k8s.io/yaml v1.2.0
go: downloading github.com/spf13/cobra v0.0.5
go: downloading k8s.io/apiextensions-apiserver v0.18.2
go: downloading github.com/mattn/go-colorable v0.1.2
go: downloading github.com/gobuffalo/flect v0.2.0
go: downloading github.com/mattn/go-isatty v0.0.8
go: downloading github.com/spf13/pflag v1.0.5
go: downloading gopkg.in/yaml.v2 v2.2.8
go: downloading golang.org/x/sys v0.0.0-20191022100944-742c48ecaeb7
go: downloading github.com/inconshreveable/mousetrap v1.0.0
go: downloading k8s.io/klog v1.0.0
go: downloading github.com/gogo/protobuf v1.3.1
go: downloading github.com/google/gofuzz v1.1.0
go: downloading k8s.io/utils v0.0.0-20200324210504-a9aa75ae1b89
go: downloading gopkg.in/yaml.v3 v3.0.0-20190905181640-827449938966
go: downloading sigs.k8s.io/structured-merge-diff/v3 v3.0.0
go: downloading gopkg.in/inf.v0 v0.9.1
go: downloading golang.org/x/net v0.0.0-20191004110552-13f9640d40b9
go: downloading github.com/json-iterator/go v1.1.8
go: downloading github.com/modern-go/reflect2 v1.0.1
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading golang.org/x/text v0.3.2
/root/golang//bin/controller-gen "crd:trivialVersions=true" webhook paths="./..." output:crd:artifacts:config=config/crd/bases
go: creating new go.mod: module tmp
(...)

from sriov-network-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.