From a0be38b7075ab563337fb4b394d1b001d30c8382 Mon Sep 17 00:00:00 2001 From: Yang An Date: Fri, 12 Jun 2026 21:10:34 +1000 Subject: [PATCH] {CI} Fix homebrew formula test by stripping no_autobump! in local tap --- azure-pipelines.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index cd92ad02622..d0048bbe004 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -679,6 +679,10 @@ jobs: git config --global user.name "Your Name" brew tap-new dev/azure-cli cp $SYSTEM_ARTIFACTSDIRECTORY/homebrew/azure-cli.rb $(brew --repository)/Library/Taps/dev/homebrew-azure-cli/Formula/ + # `no_autobump!` is carried over from the upstream homebrew-core formula but is only + # allowed in official Homebrew taps. Remove it so the formula can be installed from + # this local dev tap. It must remain in the released formula, so we only strip it here. + sed -i '' '/no_autobump!/d' $(brew --repository)/Library/Taps/dev/homebrew-azure-cli/Formula/azure-cli.rb brew install --build-from-source dev/homebrew-azure-cli/azure-cli echo == Az Version ==