Skip to content

Commit

Permalink
fix(linter): make sure hasher has all the tags (#9110)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Feb 25, 2022
1 parent 06ff832 commit 3c45a1c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/linter/src/executors/eslint/hasher.ts
Expand Up @@ -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 {
Expand Down

0 comments on commit 3c45a1c

Please sign in to comment.