Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install.cache.dir completely ignored #6423

Open
wojtekmaj opened this issue Oct 11, 2023 · 6 comments · May be fixed by #10699
Open

install.cache.dir completely ignored #6423

wojtekmaj opened this issue Oct 11, 2023 · 6 comments · May be fixed by #10699
Labels
bug Something isn't working npm Something that relates to the npm-compatible client

Comments

@wojtekmaj
Copy link

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 wojtekmaj added the bug Something isn't working label Oct 11, 2023
@Electroid Electroid added the npm Something that relates to the npm-compatible client label Oct 11, 2023
@uncenter
Copy link

uncenter commented Dec 8, 2023

I'm also seeing this:

@uncenter
Copy link

uncenter commented Dec 8, 2023

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

@wojtekmaj wojtekmaj changed the title install.cache dir completely ignored install.cache.dir completely ignored Dec 8, 2023
@LiamMartens
Copy link

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

@michelalbers
Copy link

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

@Leftium
Copy link

Leftium commented Apr 3, 2024

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

image

@SeanGriffin-Wellsky
Copy link

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).

@chawyehsu chawyehsu linked a pull request Apr 30, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working npm Something that relates to the npm-compatible client
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants