Mike McQuaid
df0fe8a802
Add version_file:
DSL to Brewfile
...
This allows writing to e.g. `.ruby-version` files directly from the
`Brewfile`, making it easy to keep these versions in sync.
2025-03-24 17:34:35 +00:00
Carlo Cabrera
f7ee1902e4
bundle: require
more lazily
...
This will hopefully make using `brew bundle` a little bit snappier.
2025-03-24 22:48:58 +08:00
Mike McQuaid
6e20cedb67
Don't filter the environment for brew bundle (exec|env|sh)
...
It's both unexpected and undesirable for `brew bundle (exec|env|sh)` to
filter the environment and makes these tools less useful.
Not filtering the environment, though, causes issues with the
`brew bundle sh` shell. Fix this up and, while we're here, also improve
the formatting for both `zsh` and `bash` (the default) to use nicer and
more consistent prompts and colours.
To simplify this, consolidate some logic in a new
`Utils::Shell.shell_with_prompt` method and add tests for it and a
similar notice for `brew bundle sh`.
Finally, avoid printing out the notice when `HOMEBREW_NO_ENV_HINTS` is
set.
2025-03-24 13:37:25 +00:00
Mike McQuaid
6f04ee4cff
Merge pull request #19563 from botantony/python-shebang
...
shebangs: fix broken shebangs like `#!python`
2025-03-21 09:22:54 +00:00
Mike McQuaid
81bf90bb70
Merge pull request #19566 from Homebrew/bundle-no-kernel
...
bundle: remove `include Kernel` references
2025-03-21 09:12:38 +00:00
Carlo Cabrera
7274fb183d
github_runner_matrix: include arch in Linux job names
...
This will make it easier to distinguish the two jobs in the GitHub UI.
2025-03-21 15:42:19 +08:00
Bo Anderson
7e64051479
bundle: remove include Kernel
references
2025-03-21 04:43:08 +00:00
botantony
dac4b6fd56
shebangs: fix broken shebangs like #!python
...
Signed-off-by: botantony <antonsm21@gmail.com>
2025-03-21 00:34:14 +01:00
Carlo Cabrera
a4f2797612
bundle/exec: fix command PATH
lookup
...
We are checking `PATH` for the command too early, since the code below
it mutates `PATH`.
Let's defer the check to later to fix this.
2025-03-19 21:55:15 +08:00
Mike McQuaid
2b46940876
Merge pull request #19545 from Homebrew/vscode_variants
...
Look for VSCode variants
2025-03-19 12:33:47 +00:00
Mike McQuaid
d84fac5af4
Look for VSCode variants
...
We've had requests for this in Homebrew/bundle a few times so let's
implement it both for there and for `brew edit`.
Tested on my machine with `cursor` and working as expected.
2025-03-19 11:42:37 +00:00
Mike McQuaid
1fa4128112
Merge pull request #19543 from Homebrew/bundle_services_installed
...
bundle: remove services_installed?
2025-03-19 10:50:01 +00:00
Mike McQuaid
c7f6fc639b
bundle: remove services_installed?
...
`brew services` is now always "installed".
2025-03-19 10:14:56 +00:00
Mike McQuaid
7a57af242e
Cleanup some missing references to Homebrew Bundle.
...
Let's just call it `brew bundle` from now on as it's a normal command.
Also, fix a reference to "Homebrew Services" while we're here.
2025-03-19 09:51:39 +00:00
Mike McQuaid
2fb3f35634
Merge pull request #19535 from Homebrew/services-run-file
...
Support `--file` for `brew services run`
2025-03-19 09:08:02 +00:00
Mike McQuaid
bdeca530ff
Migrate Homebrew/bundle to Homebrew/brew
...
Co-authored-by: Bo Anderson <mail@boanderson.me>
2025-03-19 06:47:01 +00:00
Bo Anderson
da003521c6
Support --file
for brew services run
2025-03-19 06:13:34 +00:00
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