Skip to content

suggestion to apply patch on Windows using command shell is wrong #7546

@userquin

Description

@userquin

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

8.14.1

Which area(s) of pnpm are affected? (leave empty if unsure)

CLI

Link to the code that reproduces this issue or a replay of the bug

https://github.com/elk-zone/elk

Reproduction steps

D:\work\elk-org\elk-nuxt-3.9>pnpm patch nuxt-security@1.0.1  
You can now edit the following folder: C:\Users\JOAQUN~1\AppData\Local\Temp\f275b8e094bec98fbb299d3e188eca53

Once you're done with your changes, run "pnpm patch-commit 'C:\Users\JOAQUN~1\AppData\Local\Temp\f275b8e094bec98fbb299d3e188eca53'"

D:\work\elk-org\elk-nuxt-3.9>pnpm patch-commit 'C:\Users\JOAQUN~1\AppData\Local\Temp\f275b8e094bec98fbb299d3e188eca53'
 ENOENT  ENOENT: no such file or directory, open 'D:\work\elk-org\elk-nuxt-3.9\'C:\Users\JOAQUN~1\AppData\Local\Temp\f275b8e094bec98fbb299d3e188eca53'\package.js
on'

Removing single quotes around the folder path works:

D:\work\elk-org\elk-nuxt-3.9>pnpm patch-commit C:\Users\JOAQUN~1\AppData\Local\Temp\f275b8e094bec98fbb299d3e188eca53  
 WARN  7 deprecated subdependencies found: @babel/plugin-proposal-export-namespace-from@7.18.9, @babel/plugin-proposal-unicode-property-regex@7.18.6, paneer@0.1.
0, rollup-plugin-inject@3.0.2, rollup-plugin-terser@7.0.2, shiki-es@0.14.0, sourcemap-codec@1.4.8

Describe the Bug

The patch cannot be applied.

Expected Behavior

The patch should be applied.

Which Node.js version are you using?

Node 20.10.0 LTS

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions