From 15beab18591c1476f953a8478ce57c82c0817293 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 2 Apr 2021 17:29:52 +0100 Subject: [PATCH] github_packages: odie on missing skopeo. If `HOMEBREW_FORCE_HOMEBREW_ON_LINUX` is set then we don't want to try to `brew install` or it will try and install from source (which takes too long). --- Library/Homebrew/github_packages.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/github_packages.rb b/Library/Homebrew/github_packages.rb index 9423f22c3e..a8079b0c3b 100644 --- a/Library/Homebrew/github_packages.rb +++ b/Library/Homebrew/github_packages.rb @@ -58,6 +58,8 @@ class GitHubPackages HOMEBREW_PREFIX/"bin/skopeo", ].compact.first unless skopeo.exist? + odie "no `skoepeo` and HOMEBREW_FORCE_HOMEBREW_ON_LINUX is set!" if Homebrew::EnvConfig.force_homebrew_on_linux? + ohai "Installing `skopeo` for upload..." safe_system HOMEBREW_BREW_FILE, "install", "--formula", "skopeo" skopeo = Formula["skopeo"].opt_bin/"skopeo"