From 681f5a5914b3d0c4fb05ae63628e8d372959e18c Mon Sep 17 00:00:00 2001 From: Issy Long Date: Sun, 2 May 2021 14:57:30 +0100 Subject: [PATCH] docs/Formula-Cookbook: Fix outdated HEAD hash syntax - Using the previous syntax, `brew audit --strict` fails because this uses the old Ruby hash syntax. --- docs/Formula-Cookbook.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/Formula-Cookbook.md b/docs/Formula-Cookbook.md index 0796ec2ff2..22fc18f731 100644 --- a/docs/Formula-Cookbook.md +++ b/docs/Formula-Cookbook.md @@ -577,10 +577,9 @@ To use a specific commit, tag, or branch from a repository, specify [`head`](htt ```ruby class Foo < Formula - head "https://github.com/some/package.git", :revision => "090930930295adslfknsdfsdaffnasd13" - # or :branch => "develop" (the default is "master") - # or :tag => "1_0_release", - # :revision => "090930930295adslfknsdfsdaffnasd13" + head "https://github.com/some/package.git", revision: "090930930295adslfknsdfsdaffnasd13" + # or branch: "main" (the default is "master") + # or tag: "1_0_release", revision: "090930930295adslfknsdfsdaffnasd13" end ```