Skip to content

Apply tar's extract workaround for bun on windows#5

Merged
bluwy merged 3 commits intobluwy:masterfrom
ryuapp-contrib:patch-tar-for-bun-on-windows
Jun 25, 2025
Merged

Apply tar's extract workaround for bun on windows#5
bluwy merged 3 commits intobluwy:masterfrom
ryuapp-contrib:patch-tar-for-bun-on-windows

Conversation

@ryuapp
Copy link
Copy Markdown
Contributor

@ryuapp ryuapp commented Jun 21, 2025

closes #3

Apply the patch according to unjs/giget#180, and add a runtime test to check the operation.
It's a hacky CI test, so if you don't need the runtime test, we can remove it.

@ryuapp ryuapp force-pushed the patch-tar-for-bun-on-windows branch from c3c7f51 to 4d18912 Compare June 21, 2025 07:27
@ryuapp ryuapp changed the title Patch tar for bun on windows Apply tar's extract workaround for bun on windows Jun 21, 2025
@bluwy
Copy link
Copy Markdown
Owner

bluwy commented Jun 25, 2025

I think we can keep the tests so we can easily check in the future if the workaround is no longer needed. Thanks!

@bluwy bluwy merged commit 18a9120 into bluwy:master Jun 25, 2025
@bluwy
Copy link
Copy Markdown
Owner

bluwy commented Jun 25, 2025

@ryuapp I ran the tests on master and it seems to not work on windows: https://github.com/bluwy/giget-core/actions/runs/15866068228/job/44733090992. Does it work for you locally?

Maybe we should also update tar to v7 in hopes that could indirectly fix things. (#4)

@ryuapp
Copy link
Copy Markdown
Contributor Author

ryuapp commented Jun 25, 2025

@bluwy
Oops, sorry. I thought I had confirmed that it worked on CI, but it seems I made a mistake.

However, I have confirmed that it works well on local Windows.

@bluwy
Copy link
Copy Markdown
Owner

bluwy commented Jun 25, 2025

Strange. I've pushed a test commit that undos the workaround, and indeed it the test fails, but in this case the extract silently worked (https://github.com/bluwy/giget-core/actions/runs/15866708618/job/44734898201). Just to confirm, are you using the latest bun version too?

I'm a bit afraid to release it with the CI failing, but if I can try to test it later on my windows machine and it works, we could give it a shot.

@ryuapp
Copy link
Copy Markdown
Contributor Author

ryuapp commented Jun 25, 2025

are you using the latest bun version too?

Yes. I'm using the latest bun(1.2.17) too.

After upgrading tar version to v7, I found that CI is successful:
https://github.com/ryuapp/giget-core/actions/runs/15867262101/job/44736424117#step:11:17
Apparently this is a problem caused by #4.

@ryuapp ryuapp deleted the patch-tar-for-bun-on-windows branch June 25, 2025 04:27
@bluwy
Copy link
Copy Markdown
Owner

bluwy commented Jun 26, 2025

Interesting, then it's probably easier to just bump to v7 then. Looking at its changelog, its breaking change shouldn't affect us a lot and we can keep the changes as a minor.

@bluwy
Copy link
Copy Markdown
Owner

bluwy commented Jul 1, 2025

Released the fix in v0.1.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Patch tar for bun on windows

2 participants