oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.15k stars 2.77k forks source link

DegitError: could not find commit hash for main #11422

Open anish274 opened 5 months ago

anish274 commented 5 months ago

What version of Bun is running?

1.1.10+5102a9443

What platform is your computer?

Windows 11 x64

What steps can reproduce the bug?

>bun create hono cfw-hono-B1

Which template do you want to use? cloudflare-workers

What is the expected behavior?

It should proceed further in next step.

What do you see instead?

Which template do you want to use? cloudflare-workers


- Cloning the template C:\Users\abc\AppData\Local\Temp\bunx-2242729406-create-hono@latest\node_modules\create-hono\bin:17373
throw new DegitError(`could not find commit hash for ${repo.ref}`, {
^

DegitError: could not find commit hash for main at Degit._cloneWithTar (C:\Users\abc\AppData\Local\Temp\bunx-2242729406-create-hono@latest\node_modules\create-hono\bin:17373:17) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Degit.clone (C:\Users\abc\AppData\Local\Temp\bunx-2242729406-create-hono@latest\node_modules\create-hono\bin:17237:11) { code: 'MISSING_REF', ref: 'main' }


### Additional information

node -v v20.13.1

npm -v 10.5.2

glbkst commented 4 months ago

see a similar error with 1.1.18+5a0b93523

bun create hono app create-hono version 0.9.2 ✔ Using target directory … app ? Which template do you want to use? bun ⠋ Cloning the template/tmp/bunx-1002-create-hono@latest/node_modules/create-hono/bin:17373 throw new DegitError(could not find commit hash for ${repo.ref}, { ^

DegitError: could not find commit hash for main at Degit._cloneWithTar (/tmp/bunx-1002-create-hono@latest/node_modules/create-hono/bin:17373:17) at async Degit.clone (/tmp/bunx-1002-create-hono@latest/node_modules/create-hono/bin:17237:11) { code: 'MISSING_REF', ref: 'main' }