Closed adrienverge closed 7 years ago
When creating/restoring cache, the user wants the created files and dir to replace existing ones. This also implies deleting leftover files.
To be clearer, let's take an example with a JS / TypeScript project:
footypes
node_modules
footypes2
package.json
node_modules/footypes
foo
With the --delete flag added to rsync, when creating new caches, files that are not present in source dir are deleted from target dir.
--delete
rsync
Great addition, thanks!
When creating/restoring cache, the user wants the created files and dir to replace existing ones. This also implies deleting leftover files.
To be clearer, let's take an example with a JS / TypeScript project:
footypes
innode_modules
.footypes
becomes deprecated and should be replaced byfootypes2
. The developer then replacesfootypes
withfootypes2
in hispackage.json
.node_modules/footypes
). Thenfootypes2
is also installed innode_modules
.foo
: bothfootypes
andfootypes2
are present.With the
--delete
flag added torsync
, when creating new caches, files that are not present in source dir are deleted from target dir.