doulei2100 2019-05-23 07:03
浏览 30

建立围棋依赖

I am using dep to build dependencies.

In the below toml file , I hit issue in apimachinery

# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
required = ["k8s.io/apimachinery/pkg/api/resource", "k8s.io/apimachinery/pkg/apis/meta/v1", "k8s.io/apimachinery/pkg/apis/meta/v1"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
#   name = "github.com/user/project"
#   version = "1.0.0"
#
# [[constraint]]
#   name = "github.com/user/project2"
#   branch = "dev"
#   source = "github.com/myfork/project2"
#
# [[override]]
#  name = "github.com/x/y"
#  version = "2.4.0"


[[constraint]]
  name = "k8s.io/kubernetes"
  version = "v1.13.4"

[[override]]
  name = "k8s.io/kubernetes"
  version = "v1.13.4"

[[override]]
  version = "kubernetes-1.13.4"
  name = "k8s.io/api"

[[override]]
  name = "k8s.io/client-go"
  version = "v10.0.0"

#[[constraint]]
#  name = "k8s.io/client-go"
#  version = "v10.0.0"

[[constraint]]
  name = "k8s.io/apimachinery"
  version = "kubernetes-1.13.4"

#[[override]]
#  name = "k8s.io/apimachinery"
#  version = "kubernetes-1.13.4"

[[override]]
  source = "https://github.com/fsnotify/fsnotify/archive/v1.4.7.tar.gz"
  name = "gopkg.in/fsnotify.v1"

[prune]
  non-go = true
  go-tests = true
  unused-packages = true

ERROR

    kubernetes-1.13.4: Could not introduce k8s.io/apimachinery@kubernetes-1.13.4, as its subpackage k8s.io/apimachinery/pkg/api does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)

WHAT I TRIED?

I added the required section to specify the exact packages being used but no luck.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 stm32开发clion时遇到的编译问题
    • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
    • ¥15 Vue3地图和异步函数使用
    • ¥15 C++ yoloV5改写遇到的问题
    • ¥20 win11修改中文用户名路径
    • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
    • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
    • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
    • ¥15 帮我写一个c++工程
    • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法