[wp-trac] [WordPress Trac] #49635: Build tools: Remove generated and package sourced files from committed code.

WordPress Trac noreply at wordpress.org
Fri Mar 13 22:27:56 UTC 2020


#49635: Build tools: Remove generated and package sourced files from committed
code.
------------------------------+------------------------------
 Reporter:  peterwilsoncc     |       Owner:  (none)
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+------------------------------

Comment (by azaozz):

 > I'm sure there are other complexities too.

 Yeah, been thinking about this for a while. One problem is that once a
 file is added to SVN and committed, it never goes away completely. If it
 is deleted, it will not be present in the new(er) revisions, but it still
 exists in the older revisions from before it was deleted.

 This causes a problem when a file is deleted from the repository and
 ignored, and then recreated when building. If a previous revision is
 restored, and there is already an ignored file with the same name at the
 same location, it will cause a conflict in SVN.

 A way to work around this would be to rename the newly ignored files. But
 renaming files in /build (in production) may trigger fatal errors in some
 plugins... The other option is to just ignore these problems as they would
 happen relatively rarely and are usually pretty easy to fix.

 Any other ideas/suggestions/thoughts? :)

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


More information about the wp-trac mailing list