Skip to content

Update the tar build logic#594

Merged
MicroFish91 merged 64 commits intomainfrom
mwf/tar
Feb 7, 2024
Merged

Update the tar build logic#594
MicroFish91 merged 64 commits intomainfrom
mwf/tar

Conversation

@MicroFish91
Copy link
Copy Markdown
Contributor

@MicroFish91 MicroFish91 commented Feb 6, 2024

No description provided.

items = items.filter(i => !vcsIgnoreList.includes(i.name));

tar.c({ cwd: source }, items.map(i => i.name)).pipe(fse.createWriteStream(context.tarFilePath));
await tar.c({ cwd: source, file: context.tarFilePath }, items.map(i => path.relative(source, i.fsPath)));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we'll need a writeStream for deploying to Oryx++.

I do think in general, it'd probably be better to just be able to use a stream rather than compressing locally and then uploading. Not sure if ACR actually accepts a stream or not.

But I'm not trying to give you a heart attack; if this is working, let's just leave as is... for now. 😈

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do think in general, it'd probably be better to just be able to use a stream rather than compressing locally and then uploading. Not sure if ACR actually accepts a stream or not.

Not sure if they do, I believe the CLI also builds a tar and uploads as well. But yeah once we migrate to Oryx++ hopefully we can just do as you mentioned :)

But I'm not trying to give you a heart attack; if this is working, let's just leave as is... for now. 😈

All I can say is that now I've got a tarrible headache 😭

Base automatically changed from mwf/dwp-src to main February 6, 2024 23:56
@MicroFish91 MicroFish91 marked this pull request as ready for review February 7, 2024 00:11
@MicroFish91 MicroFish91 requested a review from a team as a code owner February 7, 2024 00:11
@MicroFish91 MicroFish91 merged commit f5ce550 into main Feb 7, 2024
@MicroFish91 MicroFish91 deleted the mwf/tar branch February 7, 2024 23:09
@microsoft microsoft locked and limited conversation to collaborators Mar 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants