You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I add/update/delete a rule, scancode is somehow caching the old ones. I tried deleting ~/.cache/scancode-tk and drop the cache (/proc/sys/vm/drop_cache), unsuccessfully.
How can the cached data be updated or be ignored?
How To Reproduce
run a scan
add/update/delete a rule
run the same scan, again
scancode does not know the changes in the rules
System configuration
What OS are you running on? (Windows/MacOS/Linux)
Ubuntu 18.04
What version of scancode-toolkit was used to generate the scan file?
3.1.1
What installation method was used to install/run scancode? (pip/source download/other)
download
The text was updated successfully, but these errors were encountered:
There are two modes that drive license cache handling: the regular "user" mode and the "development" mode.
In "development" mode, (typically from a git checkout), you typically start by calling first ./configure. This will create an empty tag file at the root of your scancode checkout named SCANCODE_DEV_MODE. When this file is present, any change to the code or to the license data (e.g. rules or licenses) will trigger a cache deletion and reindexing. In that mode the cache is stored at the root of your scancode checkout in a .cache directory
Otherwise if that file is not present (e.g. when running from an archive and when you start with a call to ./scancode rather than ./configure), the cache is created once and never checked afterwards. The cache is created and used in ~/.cache/scancode-tk as you found out..
In any case and in any mode, you can force a cache check and a reindexing by running scancode --reindex-licenses. If needed the cache will be recreated in the location used for your "mode"
(though it happens automatically when you have a SCANCODE_DEV_MODE tag file present)
Note also that there is this ticket #480 that has long been in the waiting.
Description
If I add/update/delete a rule, scancode is somehow caching the old ones. I tried deleting ~/.cache/scancode-tk and drop the cache (/proc/sys/vm/drop_cache), unsuccessfully.
How can the cached data be updated or be ignored?
How To Reproduce
System configuration
Ubuntu 18.04
3.1.1
download
The text was updated successfully, but these errors were encountered: