Conversation
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When user ask to update the database without specifying the licenst list version number, it means update to the latest version. Check the license list version in the database. If it is already the latest. Do not update.
When user ask to update the database with a specific license list version number. Check the license list version in the database. If it is already that specific version. Do not update.
Cache licenses.json (from https://spdx.org/licenses/licenses.json). Cache SPDX license data tarball. Cache GitHub license popularity data. Keep the files in the same directory as the SQLite database file.
3.1) https://spdx.org/licenses/licenses.json contains latest license list version and release date
3.2) https://spdx.org/licenses/licenses.json cache will expire after 45 days
3.3) GitHub license popularity data cache will expire after 75 days
3.4) SPDX license data is versioned, so it will not expired
When user put --force option (licenseid update --force), update the database without checking the license list version in the database. If cache license data of that version is available, use cache.
When user put --no-cache option (licenseid update --no-cache), don't use cache. Don't delete cache.
When user put --clear-cache option (licenseid update --clear-cache), delete cache.
When update the database, tell the user that the data source is from local file, from remote, or from cache of remote