Mike McQuaid
3e5f7b95a5
Merge pull request #19526 from botantony/dmg-unpack
...
unpack `.dmg`: ignore `.HFS+ Private*` metadata directories
2025-03-18 12:10:19 +00:00
botantony
d3cfc3d193
unpack .dmg
: ignore .HFS+ Private*
metadata directories
...
Signed-off-by: botantony <antonsm21@gmail.com>
2025-03-18 12:59:21 +01:00
Adrian Ho
c180d636ef
linux/hardware/cpu: fix amd_k12 reference
...
AMD K12 was an planned ARM microarchitecture that never existed.
Ref: https://en.wikipedia.org/wiki/List_of_AMD_CPU_microarchitectures#Nomenclature
2025-03-18 18:45:46 +08:00
Issy Long
089680c76f
rubocops/cask/stanza_order: Ensure arch
and os
are adjacent
...
- Because Patrick wanted this to be codified.
2025-03-16 21:36:07 +00:00
Jim Myhrberg
f969c05b20
fix(services/list): correctly handle services with an error code
...
The `brew services list` command was not correctly handling services
that had an error code status.
While the `#zero?` method returns a boolean, the `#nonzero?` method
confusingly returns self or nil. Hence a negated `#zero?` call to check
for a non-zero exit code fixes the error.
While here, `#pid?` method uses a negated `#zero?`, which is not
accurate, as a negative PID value would not be a valid PID. Hence I
changed it to use `#positive?` instead.
The tests for the `#error?` method were marked as needing systemd, but I
saw no obvious reason for that due to how they all use mocked values, so
I removed the systemd requirement.
2025-03-15 22:13:44 +00:00
Douglas Eichelberger
c9a6bd6438
Merge pull request #19475 from Homebrew/typed-system-command
...
refactor: Enable strict typing in download_strategy
2025-03-14 22:34:17 +00:00
Mike McQuaid
c82518032e
Fix services types
...
Some of the typing/`T.must` usage when moving the
Homebrew/homebrew-services code to Homebrew/brew was not quite correct.
Rather than trying to make everything `strict` and import at the same
time: let's mostly loosen the typing to fix a few bugs and allow us to
add more later.
2025-03-14 16:53:07 +00:00
Sean Molenaar
0e80446543
Merge pull request #19459 from Homebrew/feat/fetch/cask_on_linux
...
fix: allow fetching casks on Linux
2025-03-14 08:40:43 +00:00
Bo Anderson
02cd7a63c8
Move Services module to Homebrew namespace
2025-03-14 08:19:11 +00:00
Sean Molenaar
756ba2ba59
Add Linux dependency check in cask.rb
2025-03-13 21:47:17 +01:00
botantony
25b9000c77
spec_helper: add :needs_systemd
...
Signed-off-by: botantony <antonsm21@gmail.com>
2025-03-13 20:29:26 +01:00
Douglas Eichelberger
c48870080e
Incorporate feedback
2025-03-13 11:59:31 -07:00
Mike McQuaid
0d3cbcad41
test/services: fix some more tests.
2025-03-13 17:36:46 +00:00
botantony
7a7395a229
services-systemctl: fix testcases
...
Signed-off-by: botantony <antonsm21@gmail.com>
2025-03-13 17:07:35 +01:00
Mike McQuaid
084ddca27a
Cleanup and fix homebrew-services migration
2025-03-13 15:22:01 +00:00
botantony
3ef52e4844
services: migrate command to main repo (WIP)
2025-03-13 13:22:01 +00:00
Douglas Eichelberger
1ca5299f40
refactor: Enable strict typing in download_strategy
2025-03-12 15:15:20 -07:00
Bevan Kay
cbc79184ad
test/dev-cmd/create: allow use of @ in cask name
2025-03-12 19:58:03 +11:00
Mike McQuaid
ae7b0c10f3
Merge pull request #19254 from tyuwags/install-size
...
Install size
2025-03-11 09:54:03 +00:00
Sam Ford
8ba1b4400a
livecheck: Include Content-Length header for POST
...
Some servers will return an error response if a `Content-Length`
header isn't included in a `POST` request, so this adds it to the
`post_args` array when `post_form` or `post_json` are used.
2025-03-07 20:31:00 -05:00
thibhero
6d3ca98207
correcting regex to match in any order and only once
2025-03-07 00:38:02 -05:00
thibhero
692174305d
correcting regex to match in any order and only once
2025-03-06 23:54:19 -05:00
thibhero
9874f2bbb9
check for formula in any order
2025-03-06 23:30:22 -05:00
thibhero
909f2afd16
brew style --fix
2025-03-06 23:02:17 -05:00
thibhero
459741f683
include FileUtils for touch
2025-03-06 22:59:58 -05:00
thibhero
e6d02658b2
adding installed up-to-date
2025-03-06 22:03:15 -05:00
thibhero
2edc42e905
erratum testball and not testball1
2025-03-06 21:43:24 -05:00
thibhero
0ebbd118e4
test for reinstall
2025-03-06 21:27:35 -05:00
thibhero
c5b8dd91f1
test for upgrade
2025-03-06 21:27:25 -05:00
thibhero
99fad7797c
modifying files with brew style
2025-03-06 21:27:13 -05:00
thibhero
f4d93e19b8
refactoring testball case to make it more readable
2025-03-06 20:59:56 -05:00
thibhero
fa4e2bad6e
updating testball5-0.1.tbz to make it work
2025-03-06 20:59:33 -05:00
thibhero
e5e647d950
refactoring testball
2025-03-06 19:58:32 -05:00
thibhero
4651b961fa
removing attributes from macOS
2025-03-06 19:57:44 -05:00
thibhero
16599b6e05
tests for install_spec.rb
2025-03-06 19:34:46 -05:00
thibhero
4e90aa527d
moving testball3 to testball5
2025-03-06 19:34:25 -05:00
thibhero
f0f2e59fb7
Merge branch 'master' into ask-test
...
# Conflicts:
# Library/Homebrew/vendor/bundle/bundler/setup.rb
2025-03-06 00:12:32 -05:00
thibhero
885b7c6f4f
checking other tests functions
2025-03-05 23:57:58 -05:00
thibhero
0f919e8397
new files for integration_spec.rb for testball3 and 4
2025-03-05 21:32:48 -05:00
thibhero
640c5175fb
creating install test with dependencies
2025-03-05 21:31:21 -05:00
thibhero
0b9374b7ac
modifying integration_test.rb to work with other dependencies
2025-03-05 21:29:02 -05:00
thibhero
665fbc382d
second test for install with dependencies
2025-03-05 17:38:55 -05:00
thibhero
817c40d261
test for upgrade_spec.rb
2025-03-05 17:37:25 -05:00
Sean Molenaar
fc319f6793
feat: add tests for completion stanzas
2025-03-05 20:12:18 +01:00
Heath Stewart
42caf20fa4
Add PowerShell (pwsh) completion support
...
Resolves #19403
2025-03-02 18:17:38 -08:00
thibhero
b7a298e1ec
first test to check option --ask
2025-03-02 20:04:02 -05:00
Douglas Eichelberger
9cb5ecf8b3
Merge pull request #19379 from Homebrew/fix-formula-type
...
Fix return type of Formula.build
2025-02-25 17:15:51 +00:00
Douglas Eichelberger
6cd9daffdf
Fix return type of Formula.build
2025-02-25 09:03:01 -08:00
Sam Ford
749a7c846e
Add livecheck_find_versions_parameters tests
2025-02-25 10:56:32 -05:00
Sam Ford
0bb18b33b2
Livecheck::Options: Add #merge!
2025-02-25 10:56:32 -05:00