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

  • 相关阅读:
    Apache TomEE 入门指南
    Windows 7运行命令大全
    hibernate hql 大全
    maven常用命令
    php编译安装php-5.6
    nginx编译安装
    apache通过AD验证
    apache编译安装 httpd 2.2 httpd 2.4
    DC 辅域转主域
    tomcat安装配置
  • 原文地址:https://www.cnblogs.com/dream397/p/14007609.html
Copyright © 2011-2022 走看看