nx
nx copied to clipboard
Retrieve Task Hashes for Unaffected Projects
- [ ] I'd be willing to implement this feature (contributing guide)
Description
I would like to have the ability to NX CLI to get task hash for current projects, regardless of whether they are affected or not.
Motivation
I would like to use the task hash to save and restore caches. Currently, I can only get the task hash from print-affected
command for affected apps, but not unaffected apps. This makes it impossible to restore the cache if the app is not affected.
Suggested Implementation
Since there's already an nx print-affected -t test
command, how about just nx print -t test
to output the same information for the current state of the projects, regardless of affected?
Alternate Implementations
Another possible implementation could be to add a flag to the print-affected
command, such as --include-unaffected
, to also print the task hash for unaffected apps.
Would prefer unaffected cmd as I don’t want to filter out affected
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.