utils/spdx: use refs/tags/
URL to fetch SPDX data
This commit is contained in:
parent
d7a365c3f1
commit
e8a892e2b0
@ -34,7 +34,7 @@ module SPDX
|
|||||||
|
|
||||||
sig { params(to: Pathname).void }
|
sig { params(to: Pathname).void }
|
||||||
def download_latest_license_data!(to: DATA_PATH)
|
def download_latest_license_data!(to: DATA_PATH)
|
||||||
data_url = "https://raw.githubusercontent.com/spdx/license-list-data/#{latest_tag}/json/"
|
data_url = "https://raw.githubusercontent.com/spdx/license-list-data/refs/tags/#{latest_tag}/json/"
|
||||||
Utils::Curl.curl_download("#{data_url}licenses.json", to: to/"spdx_licenses.json")
|
Utils::Curl.curl_download("#{data_url}licenses.json", to: to/"spdx_licenses.json")
|
||||||
Utils::Curl.curl_download("#{data_url}exceptions.json", to: to/"spdx_exceptions.json")
|
Utils::Curl.curl_download("#{data_url}exceptions.json", to: to/"spdx_exceptions.json")
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user