From 1f6b6060dd5b63853870e1590bb2a22329653c9e Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 14 Jul 2024 09:03:18 -0400 Subject: [PATCH] Remove maintainers.json This will no longer be needed or used after the merge of: https://github.com/Homebrew/homebrew-test-bot/pull/1142 --- .github/maintainers.json | 1 - Library/Homebrew/dev-cmd/update-maintainers.rb | 7 +------ Library/Homebrew/startup/config.rb | 3 --- 3 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 .github/maintainers.json diff --git a/.github/maintainers.json b/.github/maintainers.json deleted file mode 100644 index fbd2cc4ed4..0000000000 --- a/.github/maintainers.json +++ /dev/null @@ -1 +0,0 @@ -["Moisan","timsutton","MikeMcQuaid","stefanb","issyl0","dtrodrigues","dduugg","bayandin","Bo98","reitermarkus","SMillerDev","chenrui333","samford","fxcoudert","woodruffw","EricFromCanada","iMichka","alebcay","miccal","razvanazamfirei","khipp","branchvincent","cho-m","ZhongRuoyu","carlocab","Rylan12","nandahkrishna","krehel","bevanjkay","apainintheneck","p-linnane"] \ No newline at end of file diff --git a/Library/Homebrew/dev-cmd/update-maintainers.rb b/Library/Homebrew/dev-cmd/update-maintainers.rb index e21aef44e2..4dcb92431a 100644 --- a/Library/Homebrew/dev-cmd/update-maintainers.rb +++ b/Library/Homebrew/dev-cmd/update-maintainers.rb @@ -25,9 +25,6 @@ module Homebrew public_members = GitHub.public_member_usernames("Homebrew") maintainers = GitHub.members_by_team("Homebrew", "maintainers") - HOMEBREW_MAINTAINER_JSON.write(maintainers.keys.to_json) - maintainer_json_relative_path = HOMEBREW_MAINTAINER_JSON.relative_path_from(HOMEBREW_REPOSITORY).to_s - members = { plc: GitHub.members_by_team("Homebrew", "plc"), tsc: GitHub.members_by_team("Homebrew", "tsc"), @@ -53,9 +50,7 @@ module Homebrew File.write(readme, content) - diff = system_command "git", args: [ - "-C", HOMEBREW_REPOSITORY, "diff", "--exit-code", "README.md", maintainer_json_relative_path - ] + diff = system_command "git", args: ["-C", HOMEBREW_REPOSITORY, "diff", "--exit-code", "README.md"] if diff.status.success? ofail "No changes to list of maintainers." else diff --git a/Library/Homebrew/startup/config.rb b/Library/Homebrew/startup/config.rb index 7468b8a289..1a9f80f7b3 100644 --- a/Library/Homebrew/startup/config.rb +++ b/Library/Homebrew/startup/config.rb @@ -45,9 +45,6 @@ HOMEBREW_CACHE_FORMULA = (HOMEBREW_CACHE/"Formula").freeze # Where build, postinstall and test logs of formulae are written to HOMEBREW_LOGS = Pathname(ENV.fetch("HOMEBREW_LOGS")).expand_path.freeze -# Path to the list of Homebrew maintainers as a JSON file -HOMEBREW_MAINTAINER_JSON = (HOMEBREW_REPOSITORY/".github/maintainers.json").freeze - # Must use `/tmp` instead of `TMPDIR` because long paths break Unix domain sockets HOMEBREW_TEMP = Pathname(ENV.fetch("HOMEBREW_TEMP")).then do |tmp| tmp.mkpath unless tmp.exist?