Benchmark 2/5: 20250505-163040#31055
Closed
StalkAltan wants to merge 1 commit into
Closed
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Contributor
|
View your CI Pipeline Execution ↗ for commit bca214b.
☁️ Nx Cloud last updated this comment at |
Contributor
|
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. |
AgentEnder
added a commit
that referenced
this pull request
Jan 13, 2026
## Current Behavior Running `nx show project` without specifying a project name fails, even when inside a project directory: ```bash cd packages/my-lib nx show project # Error: requires projectName argument ``` ## Expected Behavior When run from within a project directory, `nx show project` infers the project from the current working directory: ```bash cd packages/my-lib nx show project # Shows my-lib configuration and targets nx show project --json # Outputs JSON for my-lib ``` Explicit project name still works: ```bash nx show project other-project ``` If cwd is not within any project, shows a helpful error with usage instructions. ### Changes - `command-object.ts`: Make `projectName` positional arg optional (`[projectName]`) - `project.ts`: Infer project from cwd using `findProjectForPath` when no project specified - `project.spec.ts`: Add unit tests for cwd inference, nested directories, root projects, and error cases ## Related Issue(s) Fixes #31055 > [!WARNING] > > <details> > <summary>Firewall rules blocked me from connecting to one or more addresses (expand for details)</summary> > > #### I tried to connect to the following addresses, but was blocked by firewall rules: > > - `repo.gradle.org` > - Triggering command: `/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED -XX:MaxMetaspaceSize=384m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en` (dns block) > - `staging.nx.app` > - Triggering command: `/usr/local/bin/node node ./bin/post-install` (dns block) > - Triggering command: `/usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/nx/nx/node_modules/.pnpm/nx@22.2.0-beta.1_@swc-node+register@1.9.1_@swc+core@1.5.7_@swc+helpers@0.5.11__@swc+typ_e0638a3d25d549ce0cdd3a7d8bad3b61/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /tmp/plugin3517-16-424.353971.sock @nx/enterprise-cloud` (dns block) > - Triggering command: `/usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/nx/nx/node_modules/.pnpm/nx@22.2.0-beta.1_@swc-node+register@1.9.1_@swc+core@1.5.7_@swc+helpers@0.5.11__@swc+typ_e0638a3d25d549ce0cdd3a7d8bad3b61/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /tmp/plugin4274-16-431.526748.sock @nx/enterprise-cloud` (dns block) > > If you need me to access, download, or install something from one of these locations, you can either: > > - Configure [Actions setup steps](https://gh.io/copilot/actions-setup-steps) to set up my environment, which run before the firewall is enabled > - Add the appropriate URLs or hosts to the custom allowlist in this repository's [Copilot coding agent settings](https://github.com/nrwl/nx/settings/copilot/coding_agent) (admins only) > > </details> <!-- START COPILOT CODING AGENT SUFFIX --> <details> <summary>Original prompt</summary> > > ---- > > *This section details on the original issue you should resolve* > > <issue_title>Feature: allow `nx show targets` to infer project from the cwd</issue_title> > <issue_description>### Description > When I'm already working inside a project's folder (for example `github/abapify/packages/adk` that has its own `project.json`), I would love to ask Nx to list the targets that belong to that project without having to remember or type the project name. Ideally `npx nx show targets` could detect the `project.json` in the current working directory and operate on that project automatically. > > ### Current behavior > Running the command from inside a project directory fails because the CLI insists on a `--project` argument: > > ``` > $ cd github/abapify/packages/adk > $ npx nx show targets > Please provide a project name via --project=<name> > ``` > > ### Expected behavior > If the current directory (or one of its ancestors) contains a `project.json`, Nx should infer the project from that file and list the targets without extra flags. This would make it much easier to explore available targets while staying focused on a single project, especially in large workspaces with many similarly named packages. > > ### Environment > - Nx: 21.6.3 > - Node: 24.10.0 > - Package manager: bun 1.3.1 > - OS: WSL2 (Linux 6.6.87.2-microsoft-standard-WSL2) > </issue_description> > > ## Comments on the Issue (you are @copilot in this section) > > <comments> > </comments> > </details> - Fixes #33503 <!-- START COPILOT CODING AGENT TIPS --> --- ✨ Let Copilot coding agent [set things up for you](https://github.com/nrwl/nx/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot) — coding agent works faster and does higher quality work when set up for your repo. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: AgentEnder <6933928+AgentEnder@users.noreply.github.com> Co-authored-by: Craigory Coppola <craigorycoppola@gmail.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
FrozenPandaz
pushed a commit
that referenced
this pull request
Jan 14, 2026
## Current Behavior Running `nx show project` without specifying a project name fails, even when inside a project directory: ```bash cd packages/my-lib nx show project # Error: requires projectName argument ``` ## Expected Behavior When run from within a project directory, `nx show project` infers the project from the current working directory: ```bash cd packages/my-lib nx show project # Shows my-lib configuration and targets nx show project --json # Outputs JSON for my-lib ``` Explicit project name still works: ```bash nx show project other-project ``` If cwd is not within any project, shows a helpful error with usage instructions. ### Changes - `command-object.ts`: Make `projectName` positional arg optional (`[projectName]`) - `project.ts`: Infer project from cwd using `findProjectForPath` when no project specified - `project.spec.ts`: Add unit tests for cwd inference, nested directories, root projects, and error cases ## Related Issue(s) Fixes #31055 > [!WARNING] > > <details> > <summary>Firewall rules blocked me from connecting to one or more addresses (expand for details)</summary> > > #### I tried to connect to the following addresses, but was blocked by firewall rules: > > - `repo.gradle.org` > - Triggering command: `/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED -XX:MaxMetaspaceSize=384m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en` (dns block) > - `staging.nx.app` > - Triggering command: `/usr/local/bin/node node ./bin/post-install` (dns block) > - Triggering command: `/usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/nx/nx/node_modules/.pnpm/nx@22.2.0-beta.1_@swc-node+register@1.9.1_@swc+core@1.5.7_@swc+helpers@0.5.11__@swc+typ_e0638a3d25d549ce0cdd3a7d8bad3b61/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /tmp/plugin3517-16-424.353971.sock @nx/enterprise-cloud` (dns block) > - Triggering command: `/usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/nx/nx/node_modules/.pnpm/nx@22.2.0-beta.1_@swc-node+register@1.9.1_@swc+core@1.5.7_@swc+helpers@0.5.11__@swc+typ_e0638a3d25d549ce0cdd3a7d8bad3b61/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /tmp/plugin4274-16-431.526748.sock @nx/enterprise-cloud` (dns block) > > If you need me to access, download, or install something from one of these locations, you can either: > > - Configure [Actions setup steps](https://gh.io/copilot/actions-setup-steps) to set up my environment, which run before the firewall is enabled > - Add the appropriate URLs or hosts to the custom allowlist in this repository's [Copilot coding agent settings](https://github.com/nrwl/nx/settings/copilot/coding_agent) (admins only) > > </details> <!-- START COPILOT CODING AGENT SUFFIX --> <details> <summary>Original prompt</summary> > > ---- > > *This section details on the original issue you should resolve* > > <issue_title>Feature: allow `nx show targets` to infer project from the cwd</issue_title> > <issue_description>### Description > When I'm already working inside a project's folder (for example `github/abapify/packages/adk` that has its own `project.json`), I would love to ask Nx to list the targets that belong to that project without having to remember or type the project name. Ideally `npx nx show targets` could detect the `project.json` in the current working directory and operate on that project automatically. > > ### Current behavior > Running the command from inside a project directory fails because the CLI insists on a `--project` argument: > > ``` > $ cd github/abapify/packages/adk > $ npx nx show targets > Please provide a project name via --project=<name> > ``` > > ### Expected behavior > If the current directory (or one of its ancestors) contains a `project.json`, Nx should infer the project from that file and list the targets without extra flags. This would make it much easier to explore available targets while staying focused on a single project, especially in large workspaces with many similarly named packages. > > ### Environment > - Nx: 21.6.3 > - Node: 24.10.0 > - Package manager: bun 1.3.1 > - OS: WSL2 (Linux 6.6.87.2-microsoft-standard-WSL2) > </issue_description> > > ## Comments on the Issue (you are @copilot in this section) > > <comments> > </comments> > </details> - Fixes #33503 <!-- START COPILOT CODING AGENT TIPS --> --- ✨ Let Copilot coding agent [set things up for you](https://github.com/nrwl/nx/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot) — coding agent works faster and does higher quality work when set up for your repo. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: AgentEnder <6933928+AgentEnder@users.noreply.github.com> Co-authored-by: Craigory Coppola <craigorycoppola@gmail.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> (cherry picked from commit 6be0a7e)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated benchmark PR. This PR was created by the repo-benchmark script.