Merge pull request #9089 from MikeMcQuaid/pr-upload-audit

dev-cmd/pr-upload: run `brew audit` before uploading.
This commit is contained in:
Mike McQuaid 2020-11-09 13:29:39 +00:00 committed by GitHub
commit 2ed5d80ff2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,6 +87,14 @@ module Homebrew
safe_system HOMEBREW_BREW_FILE, *bottle_args safe_system HOMEBREW_BREW_FILE, *bottle_args
# Check the bottle commits did not break `brew audit`
unless args.no_commit?
audit_args = ["bottle", "--merge", "--write"]
audit_args << "--verbose" if args.verbose?
audit_args << "--debug" if args.debug?
safe_system HOMEBREW_BREW_FILE, *audit_args
end
if github_releases?(bottles_hash) if github_releases?(bottles_hash)
# Handle uploading to GitHub Releases. # Handle uploading to GitHub Releases.
bottles_hash.each_value do |bottle_hash| bottles_hash.each_value do |bottle_hash|