MordechaiHadad / bob

A version manager for neovim
MIT License
1.45k stars 35 forks source link

Does bob clean old nightly build caches? #179

Closed linrongbin16 closed 10 months ago

linrongbin16 commented 10 months ago

Hi, the bob list shows:

image

Does bob stores multiple nightly caches?

MordechaiHadad commented 10 months ago

This is odd, bob should remove nightly rollbacks when they go above 3, show me your bob config. also I suggest you just remove the oldest rollbacks (listed by age when doing bob rollback) and report back when this persists.

linrongbin16 commented 10 months ago

emmmm, I didn't config bob, and based on this section: https://github.com/MordechaiHadad/bob?tab=readme-ov-file#-configuration.

I don't have directory named: ~/Library/Application\ Support/bob, I'm using macbook pro.

image image
MordechaiHadad commented 10 months ago

I see, could you make a toml/json file somewhere with rollback_limit set 3 three and set the file location via BOB_CONFIG env var? (but that would matter if you create a new rollback which you probably wont for a day)

linrongbin16 commented 10 months ago

I suddenly find that bob erase will remove all installed versions, so it's cleaned all caches for me. I just re-installed the stable version:

image

BTW, the config.json and rollback_limit=3 seems not working for me, I set them but caches still exists.

MordechaiHadad commented 10 months ago

I suddenly find that bob erase will remove all installed versions, so it's cleaned all caches for me. I just re-installed the stable version:

image

BTW, the config.json and rollback_limit=3 seems not working for me, I set them but caches still exists.

Ye it's not meant to remove rollbacks when using bob, but only when installing a new nightly version which is why i suggested you remove them yourself.

MordechaiHadad commented 10 months ago

@linrongbin16 Report back to this issue if you actually get this issue again.