-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(core): provide taskGraph for every task calculation #18410
fix(core): provide taskGraph for every task calculation #18410
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
34ecc93
to
0f88943
Compare
0f88943
to
f0685a2
Compare
f0685a2
to
2c25244
Compare
2c25244
to
711b8d7
Compare
711b8d7
to
4754805
Compare
hashTask(task: Task, taskGraph?: TaskGraph): Promise<Hash>; | ||
hashTasks(tasks: Task[], taskGraph?: TaskGraph): Promise<Hash[]>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it optional here?
@@ -85,7 +84,7 @@ async function createTasks( | |||
const tasks = Object.values(taskGraph.tasks); | |||
|
|||
await Promise.all( | |||
tasks.map((t) => hashTask(hasher, projectGraph, {} as any, t)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was this object being passed for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was used for custom hashers 🤷🏼
8547043
to
a1cb63d
Compare
a1cb63d
to
f8f24fa
Compare
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
When using the daemon - the taskGraph was not updated while recalculating the inputs for the task hashes.
Expected Behavior
The taskGraph is now passed and used for every call to the
hashTask
function, so the latest version of the taskGraph is used.Related Issue(s)
Fixes #