-
Notifications
You must be signed in to change notification settings - Fork 2.6k
feat(core): add NX_PROJECT_ROOT environment variable to runtime cache inputs #31428
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
View your CI Pipeline Execution ↗ for commit bb68655
☁️ Nx Cloud last updated this comment at |
33d1c49 to
48db687
Compare
| } | ||
| HashInstruction::Runtime(runtime) => { | ||
| // Extract project name from task_id (format: "project:target") | ||
| let project_name = task_id.split(':').next().unwrap_or(task_id); |
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.
This is not foolproof. Let's pass the name in.
48db687 to
7ea4133
Compare
… inputs Adds NX_PROJECT_ROOT environment variable to runtime cache input commands, allowing project-aware cache inputs for more granular caching strategies. - Extract project name from task_id during runtime hash instruction processing - Inject NX_PROJECT_ROOT environment variable with project root path - Maintain backwards compatibility with existing runtime cache inputs - Add comprehensive test coverage for the new functionality Co-Authored-By: AgentEnder <[email protected]>
7ea4133 to
5a717f7
Compare
505d4bc to
bb68655
Compare
|
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Add NX_PROJECT_ROOT environment variable to runtime cache inputs
Current Behavior
Runtime cache input commands do not have access to project-specific context, making it impossible to create project-aware runtime inputs.
Expected Behavior
Runtime cache input commands can access
$NX_PROJECT_ROOTenvironment variable containing the project's root directory path.Related Issue(s)
Fixes #20949
Generated with Claude Code