From 3606349a4ae27a01a6396759c5911dee9f58e0b2 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Tue, 2 Sep 2025 15:34:58 -0400 Subject: [PATCH] Error out if env version is chaos-y and --chaos not provided Re #554 --- cli/app/deploy.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cli/app/deploy.go b/cli/app/deploy.go index 455083c3..0ff13bd2 100644 --- a/cli/app/deploy.go +++ b/cli/app/deploy.go @@ -108,10 +108,13 @@ checkout as-is. Recipe commit hashes are also supported as values for } if !internal.Chaos { - _, err = app.Recipe.EnsureVersion(toDeployVersion) + isChaos, err := app.Recipe.EnsureVersion(toDeployVersion) if err != nil { 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 {