zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    postgresql9.1 streaming replication(热备份)
    python 中 theadLocal 的用法
    Python 17
    PYTHON学习笔记-DAY-16
    PYTHON学习笔记-DAY-15---------------------------未完待续
    PYTHON学习笔记-DAY-14
    PYTHON学习笔记-DAY-9
    PYTHON学习笔记-DAY-8
    PYTHON学习笔记-DAY-7
    PYTHON学习笔记-DAY-6
  • 原文地址:https://www.cnblogs.com/dream397/p/14007609.html
Copyright © 2011-2022 走看看