|
|
@ -262,7 +262,7 @@ func (i *Install) failRelease(rel *release.Release, err error) (*release.Release
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// - empty
|
|
|
|
// - empty
|
|
|
|
// - too long
|
|
|
|
// - too long
|
|
|
|
// - already in use, and not deleted
|
|
|
|
// - already in use, and not deleted
|
|
|
|
// - used by a deleted release, and i.Replace is false
|
|
|
|
// - used by a deleted release, and i.Replace is false
|
|
|
|
func (i *Install) availableName() error {
|
|
|
|
func (i *Install) availableName() error {
|
|
|
|
start := i.ReleaseName
|
|
|
|
start := i.ReleaseName
|
|
|
@ -274,6 +274,10 @@ func (i *Install) availableName() error {
|
|
|
|
return errors.Errorf("release name %q exceeds max length of %d", start, releaseNameMaxLen)
|
|
|
|
return errors.Errorf("release name %q exceeds max length of %d", start, releaseNameMaxLen)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if i.DryRun {
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
h, err := i.cfg.Releases.History(start)
|
|
|
|
h, err := i.cfg.Releases.History(start)
|
|
|
|
if err != nil || len(h) < 1 {
|
|
|
|
if err != nil || len(h) < 1 {
|
|
|
|
return nil
|
|
|
|
return nil
|
|
|
|