Skip to content

Commit

Permalink
Bug fix: fly launch was not checking to see if directory name was uni…
Browse files Browse the repository at this point in the history
…que (#3637)
  • Loading branch information
rubys committed Jun 15, 2024
1 parent 549ddcb commit e1491ed
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions internal/command/launch/plan_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -519,10 +519,16 @@ func determineAppName(ctx context.Context, appConfig *appconfig.Config, configPa
cause = "derived from your directory name"
}
}
if appName == "" {

taken := appName == ""

if !taken {
taken, _ = appNameTaken(ctx, appName)
}

if taken {
var found bool
appName, found = findUniqueAppName("")
appName, found = findUniqueAppName(appName)
cause = "generated"

if !found {
Expand Down

0 comments on commit e1491ed

Please sign in to comment.