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): import handles argument escaping correctly in Windows #27957

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

jaysoo
Copy link
Member

@jaysoo jaysoo commented Sep 17, 2024

This PR handles Windows arguments correctly, since Powershell and Cmd do not support single quotes.

Changes:

  • Properly escape '' in Windows paths
  • Set source and destination using environment variables rather than args to avoid pwsh handling of quotes

@jaysoo jaysoo requested a review from a team as a code owner September 17, 2024 14:58
Copy link

vercel bot commented Sep 17, 2024

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

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Sep 17, 2024 5:15pm

@jaysoo jaysoo added the PR status: do not merge This will block a PR from being merged until this tag is removed. label Sep 17, 2024
Copy link

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx create-nx-workspace@0.0.0-pr-27957-7e3588c my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-27957-7e3588c
Release details 📑
Published version 0.0.0-pr-27957-7e3588c
Triggered by @jaysoo
Branch fix/import-history-windows
Commit 7e3588c
Workflow run 10905689702

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

@jaysoo jaysoo removed the PR status: do not merge This will block a PR from being merged until this tag is removed. label Sep 17, 2024
Copy link

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx create-nx-workspace@0.0.0-pr-27957-a99d5ea my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-27957-a99d5ea
Release details 📑
Published version 0.0.0-pr-27957-a99d5ea
Triggered by @jaysoo
Branch fix/import-history-windows
Commit a99d5ea
Workflow run 10907808220

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

@jaysoo jaysoo merged commit 91e3ac0 into master Sep 17, 2024
6 of 7 checks passed
@jaysoo jaysoo deleted the fix/import-history-windows branch September 17, 2024 18:48
FrozenPandaz pushed a commit that referenced this pull request Sep 18, 2024
)

This PR handles Windows arguments correctly, since Powershell and Cmd do
not support single quotes.

**Changes:**

- Properly escape '\' in Windows paths
- Set source and destination using environment variables rather than
args to avoid pwsh handling of quotes

(cherry picked from commit 91e3ac0)
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.

2 participants