Fix issue where tar-fs would complain about missing files

This is being tracked in upstream issue - https://github.com/mafintosh/tar-fs/issues/81

We use a custom fork of tar-fs for now

Fixes #628
This commit is contained in:
Girish Ramakrishnan
2019-03-31 17:30:58 -07:00
parent cd8011e858
commit 38d9378e48
4 changed files with 8 additions and 4 deletions
+4
View File
@@ -286,6 +286,10 @@ function tarPack(dataLayout, key, callback) {
var pack = tar.pack('/', {
dereference: false, // pack the symlink and not what it points to
entries: dataLayout.localPaths(),
ignoreFileRemoved: (path, err) => {
debug(`tarPack: ${path} got removed (${err.code}). ignoring`);
return true;
},
map: function(header) {
header.name = dataLayout.toRemotePath(header.name);
return header;