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

fix(core): cli option --graph should work with scoped package names #17820

Merged

Conversation

AgentEnder
Copy link
Member

Current Behavior

Running nx build @scoped/package --graph fails. This is because we use the URL class when building up our URL, but also manually invoke encodeURIComponent on the project names. We don't need to manually encode the URL, as the URL class handles that.

This results in the @ and / characters being encoded once by us, and then the % signs being encoded by the URL class which results in an invalid URL

Expected Behavior

Running nx build @scoped/package --graph works

Related Issue(s)

Fixes #

@AgentEnder AgentEnder requested a review from a team as a code owner June 27, 2023 14:53
@AgentEnder AgentEnder requested a review from FrozenPandaz June 27, 2023 14:53
@vercel
Copy link

vercel bot commented Jun 27, 2023

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

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2023 4:12pm

@nx-cloud
Copy link

nx-cloud bot commented Jun 27, 2023

☁️ Nx Cloud Report

CI is running/has finished running commands for commit c763285. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@github-actions
Copy link

github-actions bot commented Jul 3, 2023

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants