bun icon indicating copy to clipboard operation
bun copied to clipboard

`install.cache.dir` completely ignored

Open wojtekmaj opened this issue 1 year ago • 6 comments

What version of Bun is running?

1.0.5+1bf28e0d77a8b2261befbdb708cefd03e0126960

What platform is your computer?

Darwin 23.0.0 arm64 arm

What steps can reproduce the bug?

Create global .bunfig.toml with the following:

[install.cache]
dir = ".bun/cache"

And/or, create local bunfig.toml with the same contents

Run bun pm cache

What is the expected behavior?

install cache dir to be set to .bun/cache directory relative to project's root

What do you see instead?

install cache dir option completely ignored

Additional information

image

wojtekmaj avatar Oct 11 '23 19:10 wojtekmaj

I'm also seeing this:

uncenter avatar Dec 08 '23 14:12 uncenter

This issue seems like a duplicate of the more general #5636.

uncenter avatar Dec 08 '23 14:12 uncenter

This issue seems like a duplicate of the more general #5636.

This problem also appears using a local config. This problem prohibits Gitlab CI from persisting the cache across jobs without a workaround

LiamMartens avatar Jan 25 '24 21:01 LiamMartens

Same issue here ... cannot use it in CI since the option is completely ignored.

michelalbers avatar Mar 27 '24 10:03 michelalbers

This env var works: BUN_INSTALL_CACHE_DIR (Windows + git bash; env var set via Windows settings.)

image

Leftium avatar Apr 03 '24 05:04 Leftium

In case anyone wondered, the env var workaround mentioned above works for non-Windows as well (at least Mac, I'd assume Linux as well).

SeanGriffin-Wellsky avatar Apr 05 '24 16:04 SeanGriffin-Wellsky