From 68ad7630fbbba3234da8b47027076c1038361c38 Mon Sep 17 00:00:00 2001 From: Thorarinn Sigurdsson Date: Fri, 12 Jan 2024 13:16:50 +0100 Subject: [PATCH] fix: remove confusing warning message (#5628) In e0505642e2cf415a3255db72bcc4a94b4ad97bdf, we added a warning message that's shown when setting the mode on Build actions depended on byDeploys that are being deployed in sync mode. These messages were noisy and unclear, so we're removing them here. --- core/src/graph/actions.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/core/src/graph/actions.ts b/core/src/graph/actions.ts index c14a005bec..9b84480462 100644 --- a/core/src/graph/actions.ts +++ b/core/src/graph/actions.ts @@ -185,15 +185,6 @@ export const actionConfigsToGraph = profileAsync(async function actionConfigsToG const referencedBuildNames = [config.build, ...buildDeps.map((d) => d.name)].filter(isTruthy) for (const buildName of referencedBuildNames) { const buildKey = actionReferenceToString({ kind: "Build", name: buildName }) - if (buildModeOverrides[buildKey]) { - const prev = buildModeOverrides[buildKey] - log.warn(dedent` - Using mode ${styles.highlight(prev.mode)} for Build ${styles.highlight(buildName)} as requested by\ - the Deploy ${styles.highlight(prev.overriddenByDeploy)}. - - Ignoring request by Deploy ${styles.highlight(config.name)} to use mode ${styles.highlight(mode)}. - `) - } actionModes[mode] = [buildKey, ...(actionModes[mode] || [])] buildModeOverrides[buildKey] = { mode,