ScoopInstaller / Scoop

A command-line installer for Windows.

Home Page:https://scoop.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Removing buckets doesn't remove corresponding sqlite caches

chawyehsu opened this issue · comments

Bug Report

scoop bucket rm <bucket> Removing buckets doesn't clear corresponding sqlite caches

Current Behavior

scoop config use_sqlite_cache true
scoop bucket add versions
scoop bucket rm ersions
scoop search nodejs-nightly
# nodejs-nightly manfiest from the Versions bucket remains available

Expected Behavior

# nodejs-nightly manfiest from the Versions bucket should not be available

Additional context/output

Possible Solution

Perform sqlite cache update when removing a bucket.

System details

Irrelevant

Scoop Configuration

{
  ...
  "scoop_branch": "develop",
  "use_sqlite_cache": true
}

Another tweak: remove cache when manifest is removed from bucket (or add a flag in database)