From 1a6ff414b0861520acc3bf9df1f54cc4032d9789 Mon Sep 17 00:00:00 2001 From: Miroslav Jonas Date: Thu, 24 Feb 2022 12:26:21 +0100 Subject: [PATCH] fix(linter): make sure hasher has all the tags --- 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 8b6f7b2cc6ca0f..6fa4b015e327fb 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 {