composer-stager icon indicating copy to clipboard operation
composer-stager copied to clipboard

Exclude paths act differently between PHP and Rsync file copier

Open tedbow opened this issue 1 year ago • 2 comments

figure out here https://www.drupal.org/project/automatic_updates/issues/3363937

What our case was

  1. we staged an operation
  2. We put a file in the active directory
  3. we called commit() with an excluded absolute path of the file from 2). The purpose of this is we don't want the file from 2) deleted on commit()

Result PHP file syncer: this file was not deleted on commit Rsync file syncer: this file was deleted on commit

We solved this by making the path relative but it seems like they should act the same way.

I chatted with @TravisCarden about this and the absolute path should only be used if it is in the source(stage in this case) directory.

tedbow avatar Jun 01 '23 16:06 tedbow