Skip to content

Commit

Permalink
preserve pax
Browse files Browse the repository at this point in the history
  • Loading branch information
aethernet committed May 22, 2023
1 parent 4854767 commit 380e7c2
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions lib/dotetch/layers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,21 +374,21 @@ async function layerStreamProcessing(
stream: NodeJS.ReadableStream,
next: () => void,
) => {
if (header.pax) {
/**
* DELETE header.pax here, if it exists, as it is causing problems with the symlink handling.
* header.pax overrides over the from/to name path for the symlinks so ends up at root level
*/
// console.log(
// `=> @layerStreamProcessing header ${inspect(
// header,
// true,
// 2,
// true,
// )}`,
// );
delete header.pax;
}
// if (header.pax) {
// /**
// * DELETE header.pax here, if it exists, as it is causing problems with the symlink handling.
// * header.pax overrides over the from/to name path for the symlinks so ends up at root level
// */
// // console.log(
// // `=> @layerStreamProcessing header ${inspect(
// // header,
// // true,
// // 2,
// // true,
// // )}`,
// // );
// delete header.pax;
// }

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

0 comments on commit 380e7c2

Please sign in to comment.