Merge pull request #818 from technosophos/fix/782-enforce-dirname

fix(helm): produce error if package name is inconsistent
pull/823/head
Matt Butcher 9 years ago committed by GitHub
commit d6b4652c97

@ -54,6 +54,10 @@ func runPackage(cmd *cobra.Command, args []string) error {
return err
}
if filepath.Base(path) != ch.Metadata.Name {
return fmt.Errorf("directory name (%s) and Chart.yaml name (%s) must match.", filepath.Base(path), ch.Metadata.Name)
}
// Save to the current working directory.
cwd, err := os.Getwd()
if err != nil {

Loading…
Cancel
Save