Skip to content

Commit

Permalink
Fix Chart.yaml file is missing error
Browse files Browse the repository at this point in the history
  • Loading branch information
L3n41c committed May 16, 2023
1 parent 7b1bd5a commit 0222820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/pkg/provider/helm_release.go
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,7 @@ func locateChart(cpo *action.ChartPathOptions, registryClient *registry.Client,
name = strings.TrimSpace(name)
version := strings.TrimSpace(cpo.Version)

if _, err := os.Stat(name); err == nil {
if _, err := os.Stat(filepath.Join(name, "Chart.yaml")); err == nil {
abs, err := filepath.Abs(name)
if err != nil {
return abs, err
Expand Down

0 comments on commit 0222820

Please sign in to comment.