2263 Commits

Author SHA1 Message Date
nandahkrishna
e2ddf9894a
Refactor brew bump 2021-01-24 19:10:46 +05:30
Rylan Polster
2c83ea7339
Merge pull request #10370 from Rylan12/brew-release
Add brew release command
2021-01-23 15:35:53 -05:00
Rylan Polster
f295e36a22
extract: re-add named arg types 2021-01-23 15:10:14 -05:00
Issy Long
49b9b6cf3f
dev-cmd/extract: Improve the usage instructions
- A friend got an error message when trying to use `brew extract` and it
  wasn't immediately obvious to me why. The usage banner only mentioned
  the "formula" argument, which they'd provided. This improves the error
  message when there aren't enough arguments so that others have a
  chance of figuring out how to use this command without having to look
  at the code for `extract_args`.

Before:

```
➜ brew extract --version='1.4' libftdi
Usage: brew extract [--version=] [--force] formula ...
[...]
Error: Invalid usage: this command requires a formula argument
```

After:

```
➜ brew extract --version='1.4' libftdi
Usage: brew extract [options] formula tap
[...]
Error: Invalid usage: This command requires at least 2 named arguments.
```

- I don't like the "at least 2" phrasing here but that's a dive into the
  arg parsing code that I don't have time for right now. An alternative
  was `named_args [:formula, :destination_tap]`, but that gave the error
  message "requires formula or destination_tap" which wasn't great
  either. I also tried `min: 2, max: 2` and that was the same "at least
  2" message.
2021-01-23 20:01:11 +00:00
Rylan Polster
e13dc902df
Add tests and fix type signature 2021-01-23 02:06:12 -05:00
Seeker
8693ca4e4d software_spec: change BottleSpecification#checksums to return array 2021-01-21 22:52:26 -08:00
Rylan Polster
e1f73e407a
Add ReleaseNotes module 2021-01-21 18:30:16 -05:00
Rylan Polster
be02591cb6
Add brew release command 2021-01-21 18:29:43 -05:00
Mike McQuaid
8cb2cc4bcc
install-bundler-gem: allow on ARM.
Needed for CI:
https://github.com/Homebrew/homebrew-core/pull/69460/checks?check_run_id=1740727396#step:6:32
2021-01-21 10:02:57 +00:00
Mike McQuaid
7360880780
Merge pull request #10375 from MikeMcQuaid/dev-cmd-arm
dev-cmd: disable when broken on Apple Silicon.
2021-01-21 09:01:16 +00:00
Rylan Polster
e172f0704e
Merge pull request #10360 from Rylan12/bash-completions-files
completions: complete files where appropriate in bash
2021-01-20 09:19:25 -05:00
Mike McQuaid
3bc31d40bd
dev-cmd: disable when broken on Apple Silicon.
This is better than users getting a weird error.
2021-01-20 14:07:44 +00:00
Michka Popoff
1c027f940f
Merge pull request #10186 from iMichka/bottle-cellar
bottle: tag specific cellars
2021-01-19 17:05:36 +01:00
Seeker
50cd836427
Merge pull request #10351 from SeekingMeaning/sig-braces
rubocop: require braces for Sorbet `sig`
2021-01-19 03:50:20 -08:00
Michka Popoff
3eea1434cc bottle: tag specific cellars 2021-01-19 10:14:25 +01:00
Rylan Polster
4ef8c8279f
completions: complete files where appropriate in bash 2021-01-19 01:03:05 -05:00
Rylan Polster
d1f3e39b7b
Update commands to generate usage banner 2021-01-18 21:20:11 -05:00
Dawid Dziurla
1525350709
Merge pull request #10350 from issyl0/brew-man-remove-link-flag
dev-cmd/man: Completely remove `--link`
2021-01-19 01:54:01 +01:00
Seeker
fbafaff4fe rubocop: require braces for Sorbet sig 2021-01-18 16:52:45 -08:00
Rylan Polster
5286be91cb
Merge pull request #10229 from Rylan12/generate-completions
Generate bash completions automatically
2021-01-18 11:47:26 -05:00
Mike McQuaid
668073dfe3
Merge pull request #10280 from hyuraku/cmd/commands_add_only_bash_command_list
cmd/prof: raise error when cmd is bash file
2021-01-18 14:25:21 +00:00
Issy Long
a0f3545a86
dev-cmd/man: Completely remove --link
- This was deprecated in ec75fbcb65ac151f401ec3fb483a1a1acf63d5e4 in 2016!
2021-01-18 00:57:21 +01:00
Dawid Dziurla
ce2dd731f7
deb-cmd/irb: remove named_args :none
seems like this command takes named args somewhere
2021-01-15 13:15:48 +01:00
Dawid Dziurla
cf654da251
dev-cmd: indicate multiple named args in usage banner 2021-01-15 13:04:07 +01:00
Rylan Polster
3af16832d9 Generate bash completions automatically 2021-01-15 00:03:28 -05:00
Rylan Polster
84af07f152
Merge pull request #10288 from Rylan12/refactor-named-args
Add named_args DSL for commands
2021-01-14 21:43:54 -05:00
Mike McQuaid
591e9d6a52
dev-cmd/tap-new: fix output on newer versions of Git.
Otherwise this prints to `stderr` to ask for configuration of the branch
name:
https://github.com/Homebrew/brew/pull/10323/checks?check_run_id=1701105141#step:5:51
2021-01-14 10:47:44 +00:00
Rylan Polster
da811373d3 Add named_args DSL for commands 2021-01-13 17:09:42 -05:00
Seeker
14b4916dda utils/ast: move helper functions from FormulaAST to AST 2021-01-11 20:35:14 -08:00
Seeker
2e8fe069fa
Merge pull request #10282 from SeekingMeaning/bump-formula-cleanup
bump-formula-pr: cleanup
2021-01-11 16:20:34 -08:00
Seeker
850cc8af3e
Merge pull request #10279 from SeekingMeaning/formula-rewriter
utils/ast: add `FormulaAST` class
2021-01-11 16:19:50 -08:00
Seeker
b29c27b9a8
Merge pull request #10251 from SeekingMeaning/bump-pr-match
bump-*-pr: check existing PRs for exact file match
2021-01-11 08:40:47 -08:00
hyuraku
c56fff3928 cmd/prof: raise error when cmd is bash file 2021-01-11 21:01:45 +09:00
Seeker
8fdfbdfc0b bump-formula-pr: cleanup 2021-01-10 09:47:20 -08:00
Seeker
2ebfb4221c utils/ast: add FormulaAST class 2021-01-10 09:25:46 -08:00
Seeker
2901d2058a bump-*-pr: check for valid tap 2021-01-08 11:42:37 -08:00
Seeker
b9854bd4cf rubocops: add unless_multiple_conditions 2021-01-08 10:33:54 -08:00
Mike McQuaid
3b3d495021
Merge pull request #10239 from MikeMcQuaid/rubocop-shim
rubocop: add shim and command.
2021-01-08 13:04:35 +00:00
Mike McQuaid
50ffa38213
Merge pull request #10247 from iMichka/sha256
checksum: simplify, use only sha256
2021-01-08 09:43:23 +00:00
Seeker
332778025a utils/ast: add Sorbet method signatures 2021-01-07 13:54:05 -08:00
Michka Popoff
5e91802470 checksum: simplify, use only sha256
We use only one sha type right now.

Needed for https://github.com/Homebrew/brew/pull/10186
2021-01-07 20:46:13 +01:00
Seeker
1395259ad6 bump-*-pr: check existing PRs for exact file match 2021-01-07 09:15:42 -08:00
Mike McQuaid
d8a5e467e8
audit: quieten down and make casks audit consistent with formulae.
The current casks audit is very noisy in the no-op case (i.e. no errors)
https://github.com/Homebrew/brew/pull/10234/checks?check_run_id=1655630568#step:15:7

This means when there are errors and you're querying all casks it's
pretty hard to quickly identify the problems.

This commit silences the `passing`, `warning` and header/summary output
when you're querying all casks (rather than a specific cask or tap).

This is more consistent with `brew audit` for formulae which is silent
unless there are audit failures.
2021-01-07 13:31:14 +00:00
Mike McQuaid
dc072afdb1
rubocop: add shim and command.
Add a shim and a command that can be used to easily add a single
directory to your `PATH` (`Library/Homebrew/shims/gems`) and have it
automatically install, configure and run `rubocop` so you can use it
for in-editor integrations.
2021-01-07 13:27:17 +00:00
Mike McQuaid
dad7dc6a14
Merge pull request #10196 from souleater7/delete-devel
Delete references to devel
2021-01-06 09:15:52 +00:00
Seeker
64d312c356 bump-formula-pr: use nil?/blank?/present? in if statements 2021-01-05 09:15:03 -08:00
Mike McQuaid
d278e87d57
Merge pull request #10211 from SeekingMeaning/ast-stanza-text
utils/ast: add `stanza_text` helper function
2021-01-05 11:01:09 +00:00
Seeker
8828b4bd68 utils/ast: add stanza_text helper function 2021-01-03 22:26:19 -08:00
Seeker
ec841e7b62 bottle: add old_checksums helper function 2021-01-01 15:23:09 -08:00
Seeker
e5eb6a2646
Merge pull request #10190 from SeekingMeaning/bottle-keep-old
bottle: check actual bottle block contents when `--keep-old`
2021-01-01 10:47:58 -08:00