apainintheneck
c9dea04bd4
cmd/install: upgrade already installed casks
...
Previously, the behavior was to warn users that a cask was already
installed and then skip modifying the installed version. This is
different to how we handled things with formulas. For them we would
upgrade any already installed formulas. This just brings casks in line
with what we already do with formulas.
Changes:
- cmd/install: Upgrade already installed casks if HOMEBREW_NO_INSTALL_UPGRADE
is not set
- env_config: Update wording of HOMEBREW_NO_INSTALL_UPGRADE to include casks
- remove error that was only used to alert about already installed casks
Note:
- The upgrade command for casks defaults to --greedy when you pass named casks
to the command which means that this will always default to that behavior
since you must specify the name of the cask when installing.
2023-07-23 18:50:39 -07:00
Eric Knibbe
0e8d1e0bec
Merge pull request #15737 from EricFromCanada/tap-remote-repair
...
cmd/tap: ensure remote exists before repairing
2023-07-23 14:27:41 -04:00
Carlo Cabrera
bf2b99e770
Merge pull request #15739 from carlocab/inreplace-typecheck
...
utils/inreplace: fix typechecking error
2023-07-23 18:40:45 +08:00
Carlo Cabrera
fa384b7cc3
utils/inreplace: fix typechecking error
...
Fixes
TypeError: Parameter 'before': Expected type T.nilable(T.any(Regexp, String)), got type Pathname with value #<Pathname:/opt/homebrew/Cellar/php@8.1/8.1.21/lib/php>
Caller: /opt/homebrew/Library/Homebrew/formula.rb:2484
Definition: /opt/homebrew/Library/Homebrew/utils/inreplace.rb:48
https://github.com/Homebrew/homebrew-core/actions/runs/5635089949/job/15266014851#step:3:1737
2023-07-23 18:23:04 +08:00
Carlo Cabrera
7cc79eaff4
Merge pull request #15738 from carlocab/inreplace-typecheck
...
formula: fix `inreplace` typechecking error
2023-07-23 15:37:11 +08:00
Carlo Cabrera
a1bf42cc89
formula: fix inreplace typechecking error
...
Fixes
TypeError: Parameter 'before': Expected type T.nilable(T.any(Regexp, String)), got type Pathname with value #<Pathname:/opt/homebrew/Cellar/php/8.2.8/lib/php>
Caller: /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/php.rb:207
Definition: /opt/homebrew/Library/Homebrew/formula.rb:2483
https://github.com/Homebrew/homebrew-core/actions/runs/5635089949/job/15265751616?pr=137335#step:3:1732
2023-07-23 15:23:45 +08:00
EricFromCanada
d47aa103d2
cmd/tap: ensure remote exists before repairing
2023-07-23 00:42:09 -04:00
EricFromCanada
ca3fe811de
formula_creator: require version before creating
2023-07-23 00:05:43 -04:00
Bo Anderson
3dcf3db07d
Merge pull request #15727 from Homebrew/sorbet-files-update
...
sorbet: Update RBI files.
2023-07-22 22:32:36 +01:00
Bo Anderson
ccde121c55
sorbet: fix ActiveSupport RBI
2023-07-22 22:00:29 +01:00
Bo Anderson
35865e7976
Merge pull request #15735 from Bo98/ghp-force-oci
...
github_packages: ensure only OCI format is uploaded
2023-07-22 20:04:00 +01:00
Bo Anderson
d5a780d5b3
github_packages: ensure only OCI format is uploaded
2023-07-22 19:45:18 +01:00
Carlo Cabrera
b5d13ce68d
Merge pull request #15734 from carlocab/cmake-args-typecheck
...
formula: fix typechecking error in `std_cmake_args`
2023-07-23 02:09:00 +08:00
Carlo Cabrera
d0b0fa5421
formula: fix typechecking error in std_cmake_args
...
`install_libdir` is sometimes passed a `Pathname`.
2023-07-23 01:52:58 +08:00
Douglas Eichelberger
af5cdd1590
Allow implicit String Pathname in gsub
2023-07-22 10:20:52 -07:00
Douglas Eichelberger
f55c2a4e8e
Fix type error
2023-07-21 20:09:00 -07:00
Douglas Eichelberger
11a9086b89
Fix inreplace sig
...
Implicit Pathname strings strike again
2023-07-21 20:02:59 -07:00
BrewTestBot
8d9afc8bb0
sorbet: Update RBI files.
...
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml ) workflow.
2023-07-22 00:29:35 +00:00
Emilio López
5b042b8641
extend/ENV/super: correct deparallelize signature
...
The block is optional, so it should be marked `T.nilable`
2023-07-21 16:46:32 -03:00
Carlo Cabrera
45171dde8d
dev-cmd/pr-pull: fix typechecking error
...
Fixes
Error: uninitialized constant Formulary::Formula
https://github.com/Homebrew/homebrew-core/actions/runs/5622415532/job/15237499429#step:8:132
2023-07-21 22:18:00 +08:00
Mike McQuaid
3a290b21b1
Merge pull request #15705 from Homebrew/revert-15385-revert-sorbet-again
...
Enable HOMEBREW_SORBET_RUNTIME (sometimes)
2023-07-21 13:24:14 +01:00
Mike McQuaid
cf65176853
Update Library/Homebrew/brew.sh
2023-07-21 11:46:04 +01:00
Bo Anderson
67ecc2452a
Merge pull request #15602 from donaldducky/cask-support-multiple-headers
...
Cask support multiple headers
2023-07-20 21:19:55 +01:00
Carlo Cabrera
8f5609f678
Merge pull request #15722 from carlocab/julia-rpath-fix
...
os/mac/keg_relocate: avoid rpath re-ordering
2023-07-20 23:21:04 +08:00
Carlo Cabrera
aa05c227a0
os/mac/keg_relocate: avoid rpath re-ordering
...
This should fix the failures seen for `julia` in Homebrew/core.[^1]
I've detailed a better/more comprehensive fix as a `TODO` in a comments.
However, the problems that the better fix would avoid are comparatively
unlikely, so I think we can try this one out for now while I work on
implementing the said fix.
[^1]: https://github.com/Homebrew/homebrew-core/pull/135398#issuecomment-1643041541
2023-07-20 21:49:18 +08:00
Branch Vincent
9597f455aa
formula: add std_pip_args
2023-07-19 20:02:47 -07:00
Bjorn Neergaard
a5554df6bb
utils/github/api: fix credentials_type
...
The order is shared with self.credentials, but during the deprecation
cycle the need to adjust self.credentials_type to match was overlooked.
2023-07-19 14:58:12 -06:00
Mike McQuaid
3b09b7e202
Merge pull request #15712 from Homebrew/dependabot/bundler/Library/Homebrew/msgpack-1.7.2
...
build(deps): bump msgpack from 1.7.1 to 1.7.2 in /Library/Homebrew
2023-07-19 13:37:15 +01:00
BrewTestBot
3501defbe3
Update RBI files for msgpack.
...
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml ) workflow.
2023-07-18 19:08:09 +00:00
BrewTestBot
1c5fe0a036
brew vendor-gems: commit updates.
2023-07-18 19:02:58 +00:00
dependabot[bot]
434d05ea13
build(deps): bump msgpack from 1.7.1 to 1.7.2 in /Library/Homebrew
...
Bumps [msgpack](https://github.com/msgpack/msgpack-ruby ) from 1.7.1 to 1.7.2.
- [Changelog](https://github.com/msgpack/msgpack-ruby/blob/master/ChangeLog )
- [Commits](https://github.com/msgpack/msgpack-ruby/compare/v1.7.1...v1.7.2 )
---
updated-dependencies:
- dependency-name: msgpack
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-18 18:59:42 +00:00
Douglas Eichelberger
368dd4d949
Fix other to_json override while we're here
2023-07-18 11:30:46 -07:00
Douglas Eichelberger
33d9dc63b0
Fix type errors when HOMEBREW_SORBET_RUNTIME=1
2023-07-18 10:22:51 -07:00
Mike McQuaid
93ba81208c
Merge pull request #15690 from p-linnane/fix-various-typos
...
various: fix miscellaneous typos
2023-07-18 17:26:41 +01:00
Mike McQuaid
79e67737a2
Merge pull request #15692 from dtrodrigues/pypi_version
...
utils/pypi: don't overwrite name/extras/version from basic_metadata if already set
2023-07-18 17:15:57 +01:00
Patrick Linnane
c56669e9cd
various: fix miscellaneous typos
2023-07-18 08:52:49 -07:00
Mike McQuaid
16a36a0910
utils/analytics: new InfluxDB token.
...
This is created with a different user that's more desirable.
2023-07-18 16:22:23 +01:00
Mike McQuaid
f195b24335
Merge pull request #15707 from carlocab/more-dupe-rpath-handling
...
os/mac/keg_relocate: avoid changing to an already existing rpath
2023-07-18 14:26:17 +01:00
Carlo Cabrera
27032e002f
os/mac/keg_relocate: avoid changing to an already existing rpath
...
Doing `change_rpath(old, new, file)` will error if `new` is already an
rpath for `file`. When this happens, `old` is no longer needed, so we
can delete it.
Fixes a build failure at shivammathur/homebrew-php#1848 .
2023-07-18 20:47:10 +08:00
Mike McQuaid
0ae98a8a09
Enable HOMEBREW_SORBET_RUNTIME (sometimes)
...
Reverts #15385 with some tweaks.
2023-07-18 13:17:54 +01:00
Mike McQuaid
060efa0be6
Merge pull request #15706 from MikeMcQuaid/casks-formulae-sharing
...
cmd/{casks,formulae}: handle sharding.
2023-07-18 13:13:53 +01:00
Mike McQuaid
4017034c0a
Merge pull request #15704 from MikeMcQuaid/generate_api_safer
...
dev-cmd/generate-*-api: be a bit safer.
2023-07-18 13:12:31 +01:00
Mike McQuaid
21f586c4bf
cmd/{casks,formulae}: handle sharding.
...
- Allow subdirectories inside `Casks`/`Formula` directories.
- DRY up repeated code with some variables.
2023-07-18 12:57:54 +01:00
Mike McQuaid
e1a7afb3cf
dev-cmd/generate-*-api: be a bit safer.
...
- also try generating formula API on macOS
- pull more logic out of `unless args.dry_run?` in case it fails
2023-07-18 12:57:09 +01:00
Mike McQuaid
1db83cd4a9
dev-cmd/bump-cask-pr: fix install_bundler_gems! logic.
2023-07-18 12:18:19 +01:00
Mike McQuaid
1b2e0b8082
api_hashable: remove HOMEBREW_CELLAR.
...
This breaks some API generation and isn't actually required.
2023-07-18 11:58:40 +01:00
Mike McQuaid
dc2ed9f022
Merge pull request #15699 from MikeMcQuaid/homebrew_cellar_placeholder
...
Use HOMEBREW_CELLAR_PLACEHOLDER
2023-07-18 11:11:59 +01:00
Mike McQuaid
1423543e72
Merge pull request #15701 from MikeMcQuaid/bump_install_bundler
...
dev-cmd/bump-*-pr: avoid installing gems when unneeded.
2023-07-18 11:08:09 +01:00
Mike McQuaid
c940e15a5c
Use HOMEBREW_CELLAR_PLACEHOLDER
...
Similarly to HOMEBREW_PREFIX_PLACEHOLDER, this allows the substitution
of HOMEBREW_CELLAR in JSON output when using the API.
Fixes #15668 .
2023-07-18 10:59:27 +01:00
Mike McQuaid
3247b2ecfa
dev-cmd/bump-*-pr: avoid installing gems when unneeded.
...
Fixes #15686
2023-07-18 10:48:11 +01:00