Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用dep将头盔3添加为Go依赖项_Go_Kubernetes Helm_Dep - Fatal编程技术网

使用dep将头盔3添加为Go依赖项

使用dep将头盔3添加为Go依赖项,go,kubernetes-helm,dep,Go,Kubernetes Helm,Dep,我想从Go应用程序安装Helm charts。根据建议,我正在加载图表 chart, err := loader.Load(filename) 但是,当尝试使用dep sure-add k8s.io/helm/pkg/chart/loader添加此依赖项时,我得到错误: Solving failure: No versions of k8s.io/helm met constraints: v3.0.1: unable to deduce repository and sour

我想从Go应用程序安装Helm charts。根据建议,我正在加载图表

chart, err := loader.Load(filename)
但是,当尝试使用
dep sure-add k8s.io/helm/pkg/chart/loader
添加此依赖项时,我得到错误:

Solving failure: No versions of k8s.io/helm met constraints:
        v3.0.1: unable to deduce repository and source type for "helm.sh/helm/v3/internal/ignore": unable to read metadata: unable to parse go-import metadata: XML syntax error on line 1: expected /> in element

如何导入此软件包?

如果执行
dep-sure-添加k8s.io/helm
会发生什么情况?@Flimzy
v3.0.1:无法引入k8s.io/helm@v3.0.1,因为它的子包k8s.io/helm不包含可用的Go代码(*build.NoGoError)。。(程序包是(root)所必需的)。