-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
How commit all patches at onece? #7291
Comments
I don't know what you are trying to say. Can you be more specific? What is your condition? What is it that you're trying to do? And why aren't existing commands insufficient? |
/> I don't know what you are trying to say. Can you be more specific? What is your condition? What is it that you're trying to do? And why aren't existing commands insufficient? It is a scenario where I need to traverse all the packages under node_modules, replace and delete some things. This is how I do it. First find all the packages to be modified, and then run |
Since your edit dir belongs to the same directory as your workspace, I have a feeling that you might be better served with overrides instead of If you insist on patch. I can tell you that patches in pnpm are just a Mass |
I think I can try git diff and then write patchedDependencies myself. Overrides may not be suitable. I only want patches to be submitted to the code repository. |
This error always appears during install. It seems to be caused by the file name being too long. Is there any way to solve this? I set LongPathsEnabled in the Windows registry to 1, but it doesn't work. ENAMETOOLONG: name too long, chdir 'D:\project\demo-vm_1.0.0\vm-web' -> 'D:\project\demo-vm_1.0.0\vm-web\node_modules\.pnpm\@babel+plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.18.6_patch_ha_gzpqrymxcpjn6jqop3mkqe3p44\node_modules\@babel\plugin-bugfix-safari-id-destructuring-collision-in-function-expression'
pnpm: ENAMETOOLONG: name too long, chdir 'D:\project\demo-vm_1.0.0\vm-web' -> 'D:\project\demo-vm_1.0.0\vm-web\node_modules\.pnpm\@babel+plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.18.6_patch_ha_gzpqrymxcpjn6jqop3mkqe3p44\node_modules\@babel\plugin-bugfix-safari-id-destructuring-collision-in-function-expression'
at process.wrappedChdir (node:internal/bootstrap/switches/does_own_process_state:112:14)
at process.chdir (C:\Users\liuminqing\AppData\Local\pnpm\global\5\.pnpm\pnpm@8.10.3\node_modules\pnpm\dist\pnpm.cjs:56:15)
at process.chdir (C:\Users\liuminqing\AppData\Local\pnpm\global\5\.pnpm\pnpm@8.10.3\node_modules\pnpm\dist\pnpm.cjs:13607:15)
at process.chdir (node:internal/worker:102:5)
at applyPatchToDir (C:\Users\liuminqing\AppData\Local\pnpm\global\5\.pnpm\pnpm@8.10.3\node_modules\pnpm\dist\pnpm.cjs:128726:15)
at buildDependency (C:\Users\liuminqing\AppData\Local\pnpm\global\5\.pnpm\pnpm@8.10.3\node_modules\pnpm\dist\pnpm.cjs:128856:54) |
I don't have Windows so it's hard for me to reproduce. Anyway, can you try WSL? |
的确,pnpm 并不支持 |
PNPM may not be able to solve the |
Contribution
Describe the user story
I have many patches, how to commit all patches, use somethings like
![image](https://private-user-images.githubusercontent.com/16078260/281931704-3b9681ff-f187-4e4a-9a04-83303d679c7b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMDk4MjcsIm5iZiI6MTczOTMwOTUyNywicGF0aCI6Ii8xNjA3ODI2MC8yODE5MzE3MDQtM2I5NjgxZmYtZjE4Ny00ZTRhLTlhMDQtODMzMDNkNjc5YzdiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDIxMzIwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ3NzA0YjUwMjU3ZTlhZTM4OTA4NjQ5ZmU0YjM5YjA0ZTc3ZTI3NzMyOWM0MDhmNWMzNTljZTQ4NzQ0ODc1NjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.JhRq2SaLEq9Bywp1Ze09IKuC4etJjjJ42i1qbpGwgsE)
pnpm patch-commit D:\project\demo\patchesTemp
, this will commit all patches atpatchesTemp
folderDescribe the solution you'd like
support somethings like
pnpm patch-commit D:\project\demo\patchesTemp
, this will commit all patches atpatchesTemp
folderDescribe the drawbacks of your solution
I need to deal some package to remove some file is not use. this package dealed by node, I have many patches to commit.
Describe alternatives you've considered
empty
The text was updated successfully, but these errors were encountered: