Skip to content

Commit

Permalink
fix: remove confusing warning message (#5628)
Browse files Browse the repository at this point in the history
In e050564, 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.
  • Loading branch information
thsig authored Jan 12, 2024
1 parent f2236b2 commit 68ad763
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions core/src/graph/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 68ad763

Please sign in to comment.