Mike McQuaid
5e5aee4a1d
Merge remote-tracking branch 'origin/master' into no-tty
...
# Conflicts:
# Library/Homebrew/test/cmd/deps_spec.rb
# Library/Homebrew/test/cmd/info_spec.rb
2024-03-31 19:31:40 +01:00
Mike McQuaid
21dd3c263f
Merge pull request #16975 from Homebrew/ported-cmds
...
Begin porting non-dev commands to use AbstractCommand
2024-03-31 19:28:30 +01:00
Douglas Eichelberger
914e53e9d5
Move isolated matchers into the specs that uses them
2024-03-30 20:24:06 -07:00
Douglas Eichelberger
fde7d380f7
Don't include FileUtils everywhere
2024-03-30 19:10:56 -07:00
Douglas Eichelberger
22bfd9b230
Port Homebrew::Cmd::Link
2024-03-30 16:24:11 -07:00
Douglas Eichelberger
8ab9d2cbad
Port Homebrew::Cmd::Leaves
2024-03-30 16:16:52 -07:00
Douglas Eichelberger
0fd082a1ff
Port Homebrew::Cmd::InstallCmd
2024-03-30 09:36:47 -07:00
Ryan Rotter
d856d88c17
tap-info cmd: skip untapped core taps
...
When homebrew/core or homebrew/cask are untapped `brew tap-info` fails because
Tap.each includes them and tap.private? fails without a git repo interrogate.
This restores the behavior of `brew tap-info` before #16710
2024-03-30 01:41:31 -04:00
Douglas Eichelberger
d6a6742a4d
Port Homebrew::Cmd::Info
2024-03-29 18:54:12 -07:00
Douglas Eichelberger
74218c0483
Port Homebrew::Cmd::Home
2024-03-29 18:53:08 -07:00
Douglas Eichelberger
d0c1af4f9e
Port Homebrew::Cmd::Help
2024-03-29 18:53:08 -07:00
Douglas Eichelberger
78b259c8c6
Port Homebrew::Cmd::GistLogs
2024-03-29 18:53:08 -07:00
Douglas Eichelberger
90cd9d2e0a
Port Homebrew::Cmd::FetchCmd
2024-03-29 18:53:08 -07:00
Douglas Eichelberger
f83ba58f8d
Port Homebrew::Cmd::Doctor
2024-03-29 18:53:07 -07:00
Douglas Eichelberger
67fd065e1d
Port Homebrew::Cmd::Docs
2024-03-29 18:53:07 -07:00
Douglas Eichelberger
bde44cfc99
Port Homebrew::Cmd::Developer
2024-03-29 18:53:07 -07:00
Douglas Eichelberger
1fc4a93ca1
Port Homebrew::Cmd::Desc
2024-03-29 18:53:07 -07:00
Douglas Eichelberger
84222ec006
Port Homebrew::Cmd::Deps
2024-03-29 18:53:07 -07:00
Douglas Eichelberger
3615e5e648
Port Homebrew::Cmd::Config
2024-03-29 18:53:07 -07:00
Douglas Eichelberger
b97f9b22e2
Port Homebrew::Cmd::CompletionsCmd
2024-03-29 18:53:07 -07:00
Douglas Eichelberger
02e2772e9d
Port Homebrew::Cmd::CommandsCmd
2024-03-29 18:53:07 -07:00
Douglas Eichelberger
adf47bb11b
Port Homebrew::Cmd::Cleanup
2024-03-29 18:53:07 -07:00
Douglas Eichelberger
a8f8c65d93
Port Homebrew::Cmd::Autoremove
2024-03-29 18:53:07 -07:00
Douglas Eichelberger
3cedf33150
Port Homebrew::Cmd::Analytics
2024-03-29 18:53:07 -07:00
Douglas Eichelberger
97370b4e6a
Use @min_named_args to generate argv
2024-03-21 19:48:15 -07:00
Douglas Eichelberger
cda2761504
Preseve args_parse test for new commands
2024-03-15 12:46:06 -07:00
Douglas Eichelberger
cbcb221de6
Create AbstractCommand class
2024-03-15 12:46:05 -07:00
Markus Reiter
e3a102efd4
Make Tap::new
private.
2024-03-06 15:10:14 +01:00
Markus Reiter
132a87aff5
Rename Tap#repo_var
to Tap#repo_var_suffix
.
2024-02-23 16:02:29 +01:00
Douglas Eichelberger
ab8f5702ac
git grep -l '^shared_examples' | xargs gsed -i 's|^shared_examples|RSpec.shared_examples|g'
2024-02-19 13:57:28 +00:00
Douglas Eichelberger
26eda5a303
git grep -l '^describe' | xargs gsed -i 's|^describe|RSpec.describe|g'
2024-02-19 13:57:27 +00:00
apainintheneck
5c41e85ae9
update cmd/uses and cmd/deps tests
...
These tests were very simple before and now this should result
in more code coverage without affecting test performance.
The only tricky thing was testing the `--missing` option without
actually installing a package using `install_test_formula` because
that is very slow (around 10 seconds on my machine). I ended
up just writing the tab to a plausible keg directory for each
package I wanted to "install". This allows us to test the behavior
while also not increasing CI time by ~20 seconds (though it'd
probably be faster on CI than my local machine).
2023-08-28 21:54:32 -07:00
Mike McQuaid
75dd070395
Remove Google Analytics
...
We are now entirely migrated to InfluxDB so can remove all GA code.
2023-06-16 10:33:15 +01:00
Markus Reiter
a3231a03fa
Implement cask renames.
2023-05-12 21:17:30 +02:00
Douglas Eichelberger
9075cbae62
brew style --fix
2023-04-21 09:58:50 -07:00
Douglas Eichelberger
ac1e6ded9a
git grep -l '# typed: false' | xargs gsed -i 's|# typed: false||g'
2023-04-21 09:57:47 -07:00
Issy Long
3a83b5492c
rubocop: Clean up Style/BlockDelimiters
excludes and autofix offenses
...
- The defaults of using "do ... end" for multi-line blocks everywhere is
good, better than switching everything to braces everywhere.
2023-03-08 23:54:22 +00:00
Mike McQuaid
a743e9277f
workflows/tests: faster, more reliable tests.
...
- Extract update tests into separate tests.
- Make `brew tests --online` run only once in its own job. This job
could be made non-required to fight flakiness.
- Split up the various macOS runs into several steps now that we have
more parallel macOS workers available.
- Cleanup some flaky tests.
2023-02-17 15:26:18 +00:00
EricFromCanada
dfc9906184
internal messaging fixes
2023-02-10 23:17:16 -05:00
Douglas Eichelberger
bd62afde91
Resolve cmd/update-report_spec violation
2023-01-22 17:09:55 -08:00
Mike McQuaid
d1be288418
some needs_network specs: temporarily disable.
...
These are absurdly flaky right now so let's disable them.
2023-01-20 17:41:07 +00:00
Mike McQuaid
59f4b5226a
tests: test on Ubuntu 18.04.
2022-11-09 14:45:43 +00:00
Bo Anderson
af234779af
test: support non-master init.defaultbranch
2022-10-07 18:44:03 +01:00
apainintheneck
a178fc6a88
Cleanup no cask on linux specs
2022-10-02 08:51:17 -07:00
apainintheneck
5d27b70757
Set --formula by default on linux
2022-10-01 17:28:07 -07:00
apainintheneck
020c50e588
Warn linux users about using --cask
2022-10-01 16:11:39 -07:00
Mike McQuaid
c7bd51b995
Merge pull request #13844 from troymccabe/feature/13834-brew-docs-cmd
...
Adds `brew docs` to close #13834
2022-09-12 14:54:29 +01:00
Troy McCabe
ac9a96874e
Adds brew docs
to close #13834
2022-09-11 22:10:37 -05:00
Mike McQuaid
e2759fbdff
Deprecate reading all formulae through commands
...
We added the `--all` flag (now renamed to `--eval-all`) for various
commands for this behaviour so let's start deprecating this.
Also, introduce a `HOMEBREW_EVAL_ALL` environment variable to use the
existing, less secure, behaviour by default and avoid passing
`--eval-all` everywhere.
2022-09-05 13:57:22 +01:00
Lukas Oberhuber
2c829380b5
Test that --debug-symbols succeeds
...
Due to limitations of the test framework, this only tests
that the command with the --debug-symbols
flag succeeds and that on MacOS the `dsymutil` is run.
2022-08-11 10:54:18 -10:00