change back to open because File.open does not work on URLs
This commit is contained in:
parent
62ffc26140
commit
eb38890f3c
3
.github/workflows/tests.yml
vendored
3
.github/workflows/tests.yml
vendored
@ -114,6 +114,9 @@ jobs:
|
||||
- name: Run brew man
|
||||
run: brew man --fail-if-changed
|
||||
|
||||
- name: Check for outdated license data
|
||||
run: brew update-license-data --fail-if-changed
|
||||
|
||||
- name: Run brew tests
|
||||
run: |
|
||||
# brew tests doesn't like world writable directories
|
||||
|
||||
@ -30,7 +30,7 @@ module Homebrew
|
||||
def update_license_data
|
||||
update_license_data_args.parse
|
||||
puts "Fetching newest version of SPDX License data..."
|
||||
File.open(SPDX_DATA_URL) do |json|
|
||||
open(SPDX_DATA_URL) do |json|
|
||||
File.open(SPDX_FOLDER_PATH/FILE_NAME, "wb") do |file|
|
||||
file.write(json.read)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user