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
Won't find files when there are round brackets () in the path #266
Comments
@igoralemasow can you create minimum reproducible test repo? |
/cc @loveky regression? or bug? |
Got it. I'll check this issue this weekend. |
@evilebottnawi maybe it's time for a new release? 😃 The latest version 4.5.1 was released on Mar 9 so it doesn't contain my fix. |
@loveky i.e. you fix also fix this problem? |
@evilebottnawi yes. you can verify that by the following steps:
npm install --save-dev git+https://git@github.com/webpack-contrib/copy-webpack-plugin.git @igoralemasow you can also verify this in your production repo. |
@loveky it workes, thank you! Will wait for a new release on npm. |
Fixed in https://github.com/webpack-contrib/copy-webpack-plugin/releases/tag/v4.5.2, feel free to feedback |
This issue can be still reproduced if the root folder consists round brackets in its name. |
/cc @loveky |
Hi guys, sorry for the late reply. I checked this issue today and seems it is a bug in node-glob. See same issue here: isaacs/node-glob#290 I have created a PR for it isaacs/node-glob#373 |
Looks like the PR has conflicts. Any idea if/when these will be resolved? |
Problem in |
I met the same issue and checked it today. I found the reason why this plug can not copy the files that has "(x86)" in the directory. In the source "utils/normalize.js", With this part, the file path changes like below example. It causes the empty file list in the code "processPattern.js". |
@YounHoyoul can you create minimum reproducible test repo? |
@evilebottnawi Okay. Let me have a look. |
@evilebottnawi I made a simple repo. https://github.com/YounHoyoul/testwebpackcopyplugin.git You need to run this in the folder "Test (x86)". I tested in my Mac and Window server. It works in my Mac, but it doesn't work in the Windows server. Below is the log in windows server.
Hash: 5b90c629ada6fed12c59 Below is the log in my Mac,
Hash: 5b90c629ada6fed12c59 As you can see, the log in the windows server doesn't have "../target/test.txt 21 bytes [emitted]" in my Mac. |
@YounHoyoul thanks for repo! |
Any update on a fix for this? We have the same problem on our build server that is installed at C:\Program Files (x86)\Jenkins. |
@cakidnyc maybe you can create reproducible test repo too? |
I also just came across the very same error that @YounHoyoul describes here: #266 (comment). If someone could explain what the purpose of the replace in
Tobias |
Yes, |
Will do. But since this code was originally meant to actually fix the exact same issue I am a bit confused. Need to trace back whether the original fix would have worked in this scenario. |
Fixed in master, release will be soon, if you encounter a problem after updating to |
Plugin can't find files when there are round brackets in the path:
C:\Program Files (x86)\Jenkins\workspace\ProjectName\STG\src\web
More details:
Plugin version: 4.5.1
Config:
If project is located in
c:\temp\test (x86)\
folder, nothing is copied.Logs:
If I rename folder to
c:\temp\test\
everything is ok.Logs:
Is this a bug or I'm doing something wrong?
The text was updated successfully, but these errors were encountered: