Commit Graph

8 Commits

Author SHA1 Message Date
Adrien Vergé 9585fa84d1 Use rsync -aHAX --delete
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:
- A project needs to install some "typings" named `footypes` in
  `node_modules`.
- `footypes` becomes deprecated and should be replaced by `footypes2`.
  The developer then replaces `footypes` with `footypes2` in his
  `package.json`.
- On next builds, old cache is restored (including
  `node_modules/footypes`). Then `footypes2` is also installed in
  `node_modules`.
- Builds now fail because there are conflicting typings for library
  `foo`: both `footypes` and `footypes2` are present.

With the `--delete` flag added to `rsync`, when creating new caches,
files that are not present in source dir are deleted from target dir.
2016-12-13 15:20:57 +01:00
Michael de Wit 93158f84df reduce the number of layers 2016-12-12 11:20:44 +01:00
Michael de Wit 46b365959f Merge pull request #1 from marcusramberg/fix_permissions
Make sure plugin is executable
2016-12-12 11:16:54 +01:00
Marcus Ramberg ced86f686c Make sure plugin is executable 2016-12-12 10:50:07 +01:00
Michael de Wit 28d97bd1e8 update link in README and image name in DOCS 2016-12-07 12:04:45 +01:00
Michael de Wit 9642e4f08e add a link to DOCS from README 2016-12-07 11:47:24 +01:00
Michael de Wit 13f372a63c add project 2016-12-07 11:45:05 +01:00
Michael de Wit 74f6b385ca Initial commit 2016-12-07 11:38:56 +01:00