From 3c45a1c81d1e5e7db1e8cd5b0b360557073ba462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Jona=C5=A1?= Date: Fri, 25 Feb 2022 17:58:43 +0100 Subject: [PATCH] fix(linter): make sure hasher has all the tags (#9110) --- packages/linter/src/executors/eslint/hasher.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/linter/src/executors/eslint/hasher.ts b/packages/linter/src/executors/eslint/hasher.ts index 8b6f7b2cc6ca0..6fa4b015e327f 100644 --- a/packages/linter/src/executors/eslint/hasher.ts +++ b/packages/linter/src/executors/eslint/hasher.ts @@ -13,10 +13,12 @@ export default async function run( } const command = hasher.hashCommand(task); const sources = await hasher.hashSource(task); - const deps = allDeps(task.id, taskGraph); + // TODO: This will be used once we pass hasher's projectGraph + // const deps = allDeps(task.id, taskGraph); const workspace = new Workspaces(appRootPath).readWorkspaceConfiguration(); const tags = hasher.hashArray( - deps.map((d) => (workspace.projects[d].tags || []).join('|')) + // deps.map((d) => (workspace.projects[d].tags || []).join('|')) + Object.values(workspace.projects).map((proj) => (proj.tags || []).join('|')) ); const context = await hasher.hashContext(); return {