unjs / giget

✨ Download templates and git repositories with pleasure!
MIT License
481 stars 39 forks source link

Extracting not working on Bun on Windows #179

Open Vexcited opened 4 months ago

Vexcited commented 4 months ago

Environment

Reproduction

import { downloadTemplate } from "giget";

const { dir } = await downloadTemplate("github:steinjs/stein/examples/bare", {
    force: true,
    dir: "my-project"
});

Describe the bug

An issue with tar on Bun on Windows makes the directory my-project fully empty. Only the directories are created but not the files.

Additional context

https://github.com/oven-sh/bun/issues/12696

Logs

Nothing is printed in the terminal.