[wp-trac] [WordPress Trac] #44256: Build can fail when `src` folder contains folders with many files

WordPress Trac noreply at wordpress.org
Tue May 29 05:01:48 UTC 2018


#44256: Build can fail when `src` folder contains folders with many files
------------------------------+---------------------
 Reporter:  adamsilverstein   |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  4.9.7
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+---------------------
Description changed by adamsilverstein:

Old description:

> For local development, I've typically symlinked plugins I am working on
> into the `src/wp-content/plugins` folder. These plugins sometimes include
> a large number of files (typically in a `node_modules` folder) that
> causes the copy part of the core build process to hang or fail. Since
> r43309 which requires a build step for core JavaScript and working out of
> the build folder, I am having trouble getting the process to complete.
> I've seen several mentions of this issue in core slack. It is possible
> this is also an issue for the themes folder for some developers.
>
> In addition, since the build process wipes out the `build` folder with
> each build, I can't put my plugins folder in build instead of `src`.
>
> One possible solution: exclude the plugins folder when wiping `build` and
> skip copying any non-core plugins during the copy phase. If we get more
> explicit about what we delete and copy, developers can have more
> flexibility in their local setups.

New description:

 For local development, I've typically symlinked plugins I am working on
 into the `src/wp-content/plugins` folder. These plugins sometimes include
 a large number of files (typically in a `node_modules` folder) that causes
 the copy part of the core build process to hang or fail. Since r43309
 which requires a build step for core JavaScript and working out of the
 `build` folder, I am having trouble getting the process to complete. I've
 seen several mentions of this issue in core slack. It is possible this is
 also an issue for the themes folder for some developers.

 In addition, since the build process wipes out the `build` folder with
 each build, I can't put my plugins folder in build instead of `src`.

 One possible solution: exclude the plugins folder when wiping `build` and
 skip copying any non-core plugins during the copy phase. If we get more
 explicit about what we delete and copy, developers can have more
 flexibility in their local setups.

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44256#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list