D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 22649 - DUB: recursive `copyFiles` is broken
Summary: DUB: recursive `copyFiles` is broken
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: tools (show other issues)
Version: D2
Hardware: All Windows
: P3 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-04 10:09 UTC by Georgy Markov
Modified: 2022-12-17 10:37 UTC (History)
0 users

See Also:


Attachments
Example project (404 bytes, application/x-7z-compressed)
2022-01-04 10:09 UTC, Georgy Markov
Details

Note You need to log in before you can comment on or make changes to this issue.
Description Georgy Markov 2022-01-04 10:09:16 UTC
Created attachment 1837 [details]
Example project

The project is structured like this:
  bundle/1/1.txt
  bundle/1/2/2.txt
  source/app.d
  dub.json

dub.json:
{
  "name" : "app",
  "targetPath": "build",
  "copyFiles" : ["bundle/*"]
}

Running DUB should create a `build` folder containing:
  1/1.txt
  1/2/2.txt
  app.exe

Instead, `build` looks like this:
  1/1.txt
  1/2/2.txt
  2/2.txt
  1.txt
  2.txt
  app.exe

I’m using DUB v1.27.0 that ships with DMD v2.098.1.