kata編譯 build flag -mod=vendor only valid when using modules
阿新 • • 發佈:2020-11-19
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 1make: *** 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