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

时间:2019-12-10 14:51:54

标签: go kubernetes-helm dep

我想从Go应用程序安装Helm图表。根据{{​​3}}的建议,我正在使用

加载图表
chart, err := loader.Load(filename)

但是,当尝试使用dep ensure -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

如何导入此软件包?

0 个答案:

没有答案