Skip to content

Commit 380e7c2

Browse files
committed
preserve pax
1 parent 4854767 commit 380e7c2

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

lib/dotetch/layers.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -374,21 +374,21 @@ async function layerStreamProcessing(
374374
stream: NodeJS.ReadableStream,
375375
next: () => void,
376376
) => {
377-
if (header.pax) {
378-
/**
379-
* DELETE header.pax here, if it exists, as it is causing problems with the symlink handling.
380-
* header.pax overrides over the from/to name path for the symlinks so ends up at root level
381-
*/
382-
// console.log(
383-
// `=> @layerStreamProcessing header ${inspect(
384-
// header,
385-
// true,
386-
// 2,
387-
// true,
388-
// )}`,
389-
// );
390-
delete header.pax;
391-
}
377+
// if (header.pax) {
378+
// /**
379+
// * DELETE header.pax here, if it exists, as it is causing problems with the symlink handling.
380+
// * header.pax overrides over the from/to name path for the symlinks so ends up at root level
381+
// */
382+
// // console.log(
383+
// // `=> @layerStreamProcessing header ${inspect(
384+
// // header,
385+
// // true,
386+
// // 2,
387+
// // true,
388+
// // )}`,
389+
// // );
390+
// delete header.pax;
391+
// }
392392

393393
// change the name of the file to place it at the right position in tar archive folder tree
394394
// change the linkname if it exist so hard and soflinks are pointing to the right file (inside the layer)

0 commit comments

Comments
 (0)