From e8a892e2b05a609b4f71ca6f54c5c8d0922bcb51 Mon Sep 17 00:00:00 2001 From: Ruoyu Zhong Date: Fri, 8 Aug 2025 16:01:51 +0800 Subject: [PATCH] utils/spdx: use `refs/tags/` URL to fetch SPDX data --- Library/Homebrew/utils/spdx.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils/spdx.rb b/Library/Homebrew/utils/spdx.rb index 96c95aba7b..48eb050b0d 100644 --- a/Library/Homebrew/utils/spdx.rb +++ b/Library/Homebrew/utils/spdx.rb @@ -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