utils/spdx: use refs/tags/ URL to fetch SPDX data

This commit is contained in:
Ruoyu Zhong 2025-08-08 16:01:51 +08:00
parent d7a365c3f1
commit e8a892e2b0
No known key found for this signature in database

View File

@ -34,7 +34,7 @@ module SPDX
sig { params(to: Pathname).void }
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}exceptions.json", to: to/"spdx_exceptions.json")
end