-
Notifications
You must be signed in to change notification settings - Fork 7
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
generate a single caching hash #60
Conversation
if (hashCollections.length > 1) { | ||
return hash(hashCollections.join(' | ')); | ||
} | ||
return hashCollections.join(' | '); |
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.
I could've just always returned
return hash(hashCollections.join(' | '));
but I kept the old way of hashing when it's a single-key for backward compatibility purposes - so we don't bust everyone's cache when this gets merged in
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.
I'd leave that in a comment in the code?
* generate a single caching hash * add backwards compatibility * print out key info * add cache step test setup * add cache step test setup * add tests for caching step * build source files * improve messaging * commit changed source files * add comment
Fixes https://linear.app/nxdev/issue/INF-1095/agents-workflows-will-fail-if-more-than-one-package-lockyarnlock