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

feat(core): allow partially resetting workspace #23381

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AgentEnder
Copy link
Member

@AgentEnder AgentEnder commented May 14, 2024

Current Behavior

  • nx reset takes no options, and will always shut down the daemon as well as remove all local cache entries. This isn't great, because it means that the next task gets a full cold start when the user may have just needed to restart the daemon to clear up the issue they are facing.
  • The projectGraphCacheDirectory defaults to the same directory as the regular cache directory, which can be a bit confusing when updating it doesn't cause it to go away.

Expected Behavior

  • nx reset allows users to pick what data is deleted
  • .nx/workspace-data is new project graph cache dir

Related Issue(s)

Fixes #

Copy link

vercel bot commented May 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview May 31, 2024 11:08pm

{ name: 'workspaceData', message: 'Workspace Data' },
],
footer: 'Press <space> to select, <return> to submit.',
indicator(state, choice) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is cool. Let's change the indicator in other places.

But when I reset, I don't want to be bothered by a prompt. I just want things reset.

We can keep the granularity flags but let's get rid of the prompt.

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.

None yet

2 participants