Skip to content
Snippets Groups Projects
Unverified Commit 9ae23ee6 authored by Issy Long's avatar Issy Long
Browse files

docs: `depends_on :linux` is now the identifier for Linux-only formulae

parent 307f85f4
No related branches found
No related tags found
No related merge requests found
......@@ -260,13 +260,14 @@ push a bottle commit to Homebrew/linuxbrew-core.
Make a PR to `Homebrew/linuxbrew-core` containing one commit named
like this: `name (new formula)`. Keep only one commit in this PR,
squash and force push to your branch if needed. Include a comment: `#
tag "linux"` in the formula after the `url` stanza, so maintainers can
easily find Linux only formulae.
squash and force push to your branch if needed. Include the line
`depends_on :linux` in the dependencies section, so that maintainers
can easily find Linux-only formulae.
For the bottle commit to be successful when new formulae are added, we
have to insert an empty bottle block into the formula code. This
usually goes after the `linux` tag.
usually goes after the `url` and `sha256` lines, with a blank line in
between.
```ruby
bottle do
......@@ -351,7 +352,7 @@ correct repository:
### Linux-only formulae
If the formula is a Linux-only formula, it either:
- will contain the line `# tag "linux"`
- will contain the line `depends_on :linux`
- won't have macOS bottles
If the user hasn't used `brew bump-formula-pr`, or is submitting
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment