Skip to content

Commit e8a892e

Browse files
committed
utils/spdx: use refs/tags/ URL to fetch SPDX data
1 parent d7a365c commit e8a892e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Library/Homebrew/utils/spdx.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def latest_tag
3434

3535
sig { params(to: Pathname).void }
3636
def download_latest_license_data!(to: DATA_PATH)
37-
data_url = "https://raw.githubusercontent.com/spdx/license-list-data/#{latest_tag}/json/"
37+
data_url = "https://raw.githubusercontent.com/spdx/license-list-data/refs/tags/#{latest_tag}/json/"
3838
Utils::Curl.curl_download("#{data_url}licenses.json", to: to/"spdx_licenses.json")
3939
Utils::Curl.curl_download("#{data_url}exceptions.json", to: to/"spdx_exceptions.json")
4040
end

0 commit comments

Comments
 (0)