Use dep to add Helm 3 as Go dependency

12/10/2019

I want to install Helm charts from a Go application. As suggested by the docs I am loading the chart with

chart, err := loader.Load(filename)

However when trying to add this dependency with dep ensure -add k8s.io/helm/pkg/chart/loader I get the error:

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

How can I import this package?

-- Harry Uglow
dep
go
kubernetes-helm

0 Answers