@ -108,10 +108,13 @@ checkout as-is. Recipe commit hashes are also supported as values for
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !internal.Chaos {
|
if !internal.Chaos {
|
||||||
_, err = app.Recipe.EnsureVersion(toDeployVersion)
|
isChaos, err := app.Recipe.EnsureVersion(toDeployVersion)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(i18n.G("ensure recipe: %s", err))
|
log.Fatal(i18n.G("ensure recipe: %s", err))
|
||||||
}
|
}
|
||||||
|
if isChaos {
|
||||||
|
log.Fatal(i18n.G("version '%s' appears to be a chaos commit, but --chaos/-C was not provided", toDeployVersion))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := lint.LintForErrors(app.Recipe); err != nil {
|
if err := lint.LintForErrors(app.Recipe); err != nil {
|
||||||
|
Reference in New Issue
Block a user