helm/helm · error

dependencies are not valid in the Chart file with apiVersion

Error message

dependencies are not valid in the Chart file with apiVersion '%s'. They are valid in apiVersion '%s'

What it means

Error "dependencies are not valid in the Chart file with apiVersion '%s'. They are valid in apiVersion '%s'" thrown in helm/helm.

Source

Thrown at internal/chart/v3/lint/rules/chartfile.go:202

}

func validateChartIconPresence(cf *chart.Metadata) error {
	if cf.Icon == "" {
		return errors.New("icon is recommended")
	}
	return nil
}

func validateChartIconURL(cf *chart.Metadata) error {
	if cf.Icon != "" && !govalidator.IsRequestURL(cf.Icon) {
		return fmt.Errorf("invalid icon URL '%s'", cf.Icon)
	}
	return nil
}

func validateChartDependencies(cf *chart.Metadata) error {
	if len(cf.Dependencies) > 0 && cf.APIVersion != chart.APIVersionV3 {
		return fmt.Errorf("dependencies are not valid in the Chart file with apiVersion '%s'. They are valid in apiVersion '%s'", cf.APIVersion, chart.APIVersionV3)
	}
	return nil
}

func validateChartType(cf *chart.Metadata) error {
	if cf.Type != "" && cf.APIVersion != chart.APIVersionV3 {
		return fmt.Errorf("chart type is not valid in apiVersion '%s'. It is valid in apiVersion '%s'", cf.APIVersion, chart.APIVersionV3)
	}
	return nil
}

// loadChartFileForTypeCheck loads the Chart.yaml
// in a generic form of a map[string]interface{}, so that the type
// of the values can be checked
func loadChartFileForTypeCheck(filename string) (map[string]any, error) {
	b, err := os.ReadFile(filename)
	if err != nil {
		return nil, err

View on GitHub (pinned to 2a29f1770b)

When it happens

Trigger: Thrown at internal/chart/v3/lint/rules/chartfile.go:202 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of helm/helm@2a29f1770b (2026-08-15). Data as JSON: /api/errors/807a04ac40835209. Report an issue: GitHub.