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?
- update tag in package.json e.g
{
"@repo/shared": "git+https://user:[email protected]/repo/shared.git#1.2.6"
}to
{
"@repo/shared": "git+https://user:[email protected]/repo/shared.git#1.2.8"
}- 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.
Source: oven-sh/bun