From 20d59effd6a1c3f6268284a6735c562dfe428821 Mon Sep 17 00:00:00 2001 From: Nuno Cruces Date: Tue, 8 Jun 2021 13:09:27 +0100 Subject: [PATCH 1/3] brew tap-new: tests.yml workflow fails with casks Running `brew test-bot --only-tap-syntax` fails on `ubuntu-latest` if any casks are added later to the tap, since casks are macOS only. --- Library/Homebrew/dev-cmd/tap-new.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/dev-cmd/tap-new.rb b/Library/Homebrew/dev-cmd/tap-new.rb index d85663aeb6..f240f856fe 100644 --- a/Library/Homebrew/dev-cmd/tap-new.rb +++ b/Library/Homebrew/dev-cmd/tap-new.rb @@ -95,6 +95,7 @@ module Homebrew - run: brew test-bot --only-setup - run: brew test-bot --only-tap-syntax + if: matrix.os == 'macos-latest' - run: brew test-bot --only-formulae if: github.event_name == 'pull_request' From 9740510650a2422a5be6ed39de8ab92b69fb5bb6 Mon Sep 17 00:00:00 2001 From: Nuno Cruces Date: Wed, 9 Jun 2021 19:11:42 +0100 Subject: [PATCH 2/3] Revert "brew tap-new: tests.yml workflow fails with casks" This reverts commit 20d59effd6a1c3f6268284a6735c562dfe428821. --- Library/Homebrew/dev-cmd/tap-new.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/tap-new.rb b/Library/Homebrew/dev-cmd/tap-new.rb index f240f856fe..d85663aeb6 100644 --- a/Library/Homebrew/dev-cmd/tap-new.rb +++ b/Library/Homebrew/dev-cmd/tap-new.rb @@ -95,7 +95,6 @@ module Homebrew - run: brew test-bot --only-setup - run: brew test-bot --only-tap-syntax - if: matrix.os == 'macos-latest' - run: brew test-bot --only-formulae if: github.event_name == 'pull_request' From 7db528163c5fe138d120292181fdc17633fba67a Mon Sep 17 00:00:00 2001 From: Nuno Cruces Date: Wed, 9 Jun 2021 19:13:39 +0100 Subject: [PATCH 3/3] brew audit: fails on Linux if tap has any casks Running `brew audit --tap=[TAP]` fails on Linux (including GitHub Actions CI) if the tap has any caksks. --- Library/Homebrew/dev-cmd/audit.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 7ccc31a39b..b7e1bfb433 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -204,6 +204,7 @@ module Homebrew cask_results = if audit_casks.empty? {} else + require "cask/cmd/abstract_command" require "cask/cmd/audit" Cask::Cmd::Audit.audit_casks(