kata编译 build flag -mod=vendor only valid when using modules

 

kata-containers/runtime# make -j48
kata-runtime - version 1.12.0-alpha1 (commit 011c73f24a94118c74a1833fb2f27da0eaf3b576-dirty)

     BUILD    /opt/gopath/src/github.com/kata-containers/runtime/containerd-shim-kata-v2
     BUILD    /opt/gopath/src/github.com/kata-containers/runtime/containerd-shim-kata-v2
     BUILD    /opt/gopath/src/github.com/kata-containers/runtime/kata-netmon
build flag -mod=vendor only valid when using modules
build flag -mod=vendor only valid when using modules
Makefile:601: recipe for target '/opt/gopath/src/github.com/kata-containers/runtime/containerd-shim-kata-v2' failed
make: *** [/opt/gopath/src/github.com/kata-containers/runtime/containerd-shim-kata-v2] Error 1
make: *** Waiting for unfinished jobs....
Makefile:559: recipe for target '/opt/gopath/src/github.com/kata-containers/runtime/kata-netmon' failed
make: *** [/opt/gopath/src/github.com/kata-containers/runtime/kata-netmon] Error 1
root@ubuntu:/opt/gopath/src/github.com/kata-containers/runtime# go -version
flag provided but not defined: -version
Go is a tool for managing Go source code.

原来是编译时hyepervisor选择有误,重新git checkout makefile

posted on 2020-11-19 20:03  tycoon3  阅读(487)  评论(0编辑  收藏  举报

导航