nx icon indicating copy to clipboard operation
nx copied to clipboard

Retrieve Task Hashes for Unaffected Projects

Open jacobgoh101 opened this issue 1 year ago • 1 comments

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.

jacobgoh101 avatar Jul 02 '23 03:07 jacobgoh101

Would prefer unaffected cmd as I don’t want to filter out affected

jbadeau avatar Jul 03 '23 15:07 jbadeau

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! 🙏

github-actions[bot] avatar Mar 12 '24 00:03 github-actions[bot]

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.

github-actions[bot] avatar Apr 28 '24 00:04 github-actions[bot]