docs/Formula-Cookbook: Fix outdated HEAD hash syntax
- Using the previous syntax, `brew audit --strict` fails because this uses the old Ruby hash syntax.
This commit is contained in:
parent
4444b70f2a
commit
681f5a5914
@ -577,10 +577,9 @@ To use a specific commit, tag, or branch from a repository, specify [`head`](htt
|
|||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
class Foo < Formula
|
class Foo < Formula
|
||||||
head "https://github.com/some/package.git", :revision => "090930930295adslfknsdfsdaffnasd13"
|
head "https://github.com/some/package.git", revision: "090930930295adslfknsdfsdaffnasd13"
|
||||||
# or :branch => "develop" (the default is "master")
|
# or branch: "main" (the default is "master")
|
||||||
# or :tag => "1_0_release",
|
# or tag: "1_0_release", revision: "090930930295adslfknsdfsdaffnasd13"
|
||||||
# :revision => "090930930295adslfknsdfsdaffnasd13"
|
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user