ScoopInstaller / Scoop

A command-line installer for Windows.
https://scoop.sh
Other
20.99k stars 1.4k forks source link

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

Closed chawyehsu closed 2 months ago

chawyehsu commented 4 months ago

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
}
niheaven commented 4 months ago

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