fix(helm): produce error if package name is inconsistent

'helm package' now produces an error if the directory name and the name
in Chart.yaml are not the same.
pull/818/head
Matt Butcher 8 years ago
parent 632756a653
commit 411cf6e54a

@ -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