#11548·bun

bun requires clearing cache when updating package that is using a git tag

Author: shirotechCreated Jun 2, 2024Updated Sep 28, 2026
Labelsbug

What version of Bun is running?

1.1.10

What platform is your computer?

Darwin 23.4.0 arm64 arm

What steps can reproduce the bug?

  1. update tag in package.json e.g
json
{
"@repo/shared": "git+https://user:[email protected]/repo/shared.git#1.2.6"
}

to

json
{
"@repo/shared": "git+https://user:[email protected]/repo/shared.git#1.2.8"
}
  1. run bun install

What is the expected behavior?

Expected install to succeed

What do you see instead?

Resolving [1/1] error: no commit matching "1.2.8" found for "@repo/shared" (but repository exists)

Additional information

clearing cache with bun cache pm rm, then running bun install works. Workaround available, but pretty annoying having to clear the cache each time.