使用dep将头盔3添加为Go依赖项
我想从Go应用程序安装Helm charts。根据建议,我正在加载图表使用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
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
会发生什么情况?@Flimzyv3.0.1:无法引入k8s.io/helm@v3.0.1,因为它的子包k8s.io/helm不包含可用的Go代码(*build.NoGoError)。。(程序包是(root)所必需的)。