Skip to content
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

Correctly hash empty outputs first #341

Merged
merged 1 commit into from
Dec 17, 2021
Merged

Conversation

jaredpalmer
Copy link
Contributor

@jaredpalmer jaredpalmer commented Dec 17, 2021

Solves an issue where if you ran a task without outputs defined, it gets cached, and then you changed outputs to be empty. You would get an incorrect cache hit because the of when in the codebase we hashed outputs (prior to setting defaults). This PR fixes that issue.

@vercel
Copy link

vercel bot commented Dec 17, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/vercel/turbo-site/BzLwzjRmC9Y6DN2rq79uTw91JEfJ
✅ Preview: https://turbo-site-git-fix-hash-empty-outputs.vercel.sh

@jaredpalmer jaredpalmer merged commit 89e0a7a into main Dec 17, 2021
@jaredpalmer jaredpalmer deleted the fix/hash-empty-outputs branch December 17, 2021 15:44
sokra pushed a commit that referenced this pull request Oct 25, 2022
Many small things I found

The most important is probably the typescript transform

The remaining bits should hopefully be self-explanatory from the commit messages
sokra pushed a commit that referenced this pull request Oct 25, 2022
Had added this to run nextest in #341, but because it doesn't work I had reverted part of the change, just not this
jridgewell pushed a commit to vercel/next.js that referenced this pull request Mar 10, 2023
Many small things I found

The most important is probably the typescript transform

The remaining bits should hopefully be self-explanatory from the commit messages
sokra pushed a commit to vercel/next.js that referenced this pull request Mar 13, 2023
Many small things I found

The most important is probably the typescript transform

The remaining bits should hopefully be self-explanatory from the commit messages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant