Mike McQuaid
1e0add6d66
Merge pull request #17373 from tesaguri/cp-reflink
2024-06-13 08:57:20 +01:00
Daiki Mizukami
a30cd15a73
extend/os/mac/utils/copy: typed: strict
2024-06-13 06:56:18 +09:00
Daiki Mizukami
028cfe1ea6
Utils::Cp: Rename to Utils::Copy
...
As per review feedback:
https://github.com/Homebrew/brew/pull/17373#discussion_r1633217748
2024-06-11 20:31:34 +09:00
Daiki Mizukami
eab1e87726
Utils::Cp: Deduplicate SystemCommand
invocations
2024-06-09 22:59:24 +09:00
Daiki Mizukami
67f280eb53
Utils::Cp: Add force_system
keyword argument
...
This fixes the test for `UnpackStrategy::Directory`, which needs the
`cp` command.
2024-06-09 07:57:56 +09:00
Daiki Mizukami
9156891c99
Utils::Cp: Use FileUtils.cp
on Linux
...
`FileUtils.cp` is implemented with the lightweight `copy_file_range(2)`
syscall on Linux, so it's more performant than the plain `cp` command on
that platform.
cf. https://github.com/Homebrew/brew/pull/17373#pullrequestreview-2105629022
2024-06-08 20:25:19 +09:00
Daiki Mizukami
7cfcc596b9
Utils::Cp: Move macOS-specific code to extend/os/mac
2024-06-07 19:03:48 +09:00
Issy Long
509fffab2b
Make more files Sorbet typed: strict
...
- According to Spoom, these could be bumped automatically with no errors.
2024-06-02 15:15:24 +01:00
Carlo Cabrera
cc65e5419d
linkage_checker: remove gcc
from @indirect_deps
on Linux
...
Closes #17303 .
2024-05-16 00:47:21 +08:00
Mike McQuaid
16901a674f
extend/kernel: make opoo
/odie
/etc. print GitHub Actions notes.
...
We already do this for deprecations but these may make warnings
and errors from Homebrew easier to spot in GitHub Actions logs.
While we're here, cleanup other cases that should have used
`GitHub::Actions::Annotation` but didn't and provide some helpers and
tweaks there necessary for our use case here.
2024-05-09 14:43:53 +01:00
Markus Reiter
480e264d9a
Lint Ruby docs.
2024-05-01 11:35:21 +02:00
Markus Reiter
caf87c0336
Warn about undocumented non-private APIs.
2024-05-01 11:35:20 +02:00
Markus Reiter
f7361c8d29
Remove disabled extend
.
2024-04-30 11:01:12 +02:00
Markus Reiter
0b56d0be4a
Document Tab.for_keg
and use Keg#tab
where possible.
2024-04-28 20:50:13 +02:00
Markus Reiter
0f0055ede4
Make documentation @api private
by default.
2024-04-26 19:04:20 +02:00
Mike McQuaid
8baed211a7
brew style --fix
2024-04-08 19:23:33 +01:00
Douglas Eichelberger
057f561d2c
Port Homebrew::Cmd::Readall
2024-04-01 10:05:02 -07:00
Bo Anderson
28a80a6ebf
Avoid writable_real?
2024-03-27 06:26:32 +00:00
Michael Cho
f432a7f401
formula_cellar_checks: fix type from #16946
...
Signed-off-by: Michael Cho <michael@michaelcho.dev>
2024-03-25 15:55:37 -04:00
Michael Cho
e31a2b8ed7
formula_cellar_checks: add more types
...
Signed-off-by: Michael Cho <michael@michaelcho.dev>
2024-03-24 19:46:57 -04:00
Douglas Eichelberger
084f63ef22
Port Homebrew::DevCmd::UpdateTest
2024-03-22 09:33:28 -07:00
Douglas Eichelberger
ee0c967ce0
Port Homebrew::DevCmd::Bottle
2024-03-20 10:16:17 -07:00
Bo Anderson
c8214fd1ce
Merge pull request #16860 from Homebrew/reproducible-builds
...
Reproducible builds for native compiled binaries
2024-03-13 03:55:38 +00:00
Bo Anderson
5582849ae7
Reproducible builds for native compiled binaries
2024-03-11 16:06:55 +00:00
Michael Cho
2d884981c2
cleaner: add types
...
Signed-off-by: Michael Cho <michael@michaelcho.dev>
2024-03-11 11:46:23 -04:00
Mike McQuaid
99e0b69262
Merge pull request #16852 from gliptak/xcode1
...
Emit more specific error text on outdated Xcode
2024-03-08 08:38:14 +00:00
Mike McQuaid
de73522b5a
os/Mac/diagnostic: include Xcode path and version.
2024-03-08 08:24:45 +00:00
Gábor Lipták
05acfaba33
Emit more specific error text on outdated Xcode
...
Signed-off-by: Gábor Lipták <gliptak@gmail.com>
2024-03-07 16:24:08 -05:00
Mike McQuaid
ea2892f8ee
brew.rb: handle missing args.
2024-03-07 16:20:20 +00:00
Bo Anderson
1d7101d8a3
Use HOMEBREW_TEMP more universally
2024-02-26 16:58:53 +00:00
Issy Long
f4218a6316
Fix RuboCop Performance/MapCompact
offenses
...
- Rename an iterator variable since it would make the line too long.
2024-02-25 22:59:59 +00:00
Bo Anderson
58874de60b
Generalise internal cross-image handling
2024-02-22 17:25:20 +00:00
Mike McQuaid
412852bd5f
Apply suggestions from code review
...
Co-authored-by: Markus Reiter <me@reitermark.us>
2024-02-19 14:05:12 +00:00
Douglas Eichelberger
d6b3f5031a
Enable and fix warnings
2024-02-19 13:57:27 +00:00
Douglas Eichelberger
eb7c3e52a0
Require SystemInclude only where needed
2024-01-31 11:42:01 -08:00
Issy Long
c63723bd7d
Merge pull request #16501 from issyl0/rubocop-new-rules-style-redundant-freeze
...
Fix RuboCop `Style/RedundantFreeze` offenses
2024-01-19 15:05:08 +00:00
Issy Long
bc5e422815
Merge pull request #16497 from issyl0/rubocop-new-rules-style-array-intersect
...
Fix RuboCop `Style/ArrayIntersect` offenses
2024-01-19 13:00:30 +00:00
Patrick Linnane
74a487ccfc
hardware/cpu: add virtualized?
check
...
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2024-01-18 16:46:59 -08:00
Issy Long
f682147598
Fix RuboCop Style/RedundantFreeze
offenses
2024-01-18 22:20:01 +00:00
Issy Long
0e27dc2564
Fix RuboCop Style/ArrayIntersect
offenses
2024-01-18 14:11:43 +00:00
Michael Cho
0ff2458952
extend/ENV/shared: effective_arch as public API
2024-01-13 15:26:38 -05:00
Patrick Linnane
f63b089735
os/mac/hardware/cpu: add update comment
2024-01-06 08:58:20 -08:00
Patrick Linnane
c0e6892c63
os/mac/hardware/cpu: update M3 values
2023-12-28 09:39:21 -08:00
Douglas Eichelberger
3abbf4447e
Some minor regexp match perf improvements
2023-12-27 13:16:36 -08:00
Bo Anderson
fba5a874fc
os/mac/hardware: use Westmere on >= Ventura
2023-12-23 04:58:53 +00:00
apainintheneck
536b37c766
cmd/config: Add core cask tap to output
...
This information is occasionally useful when debugging so we should
include it by default to make our lives easier.
2023-12-21 22:54:38 -08:00
Patrick Linnane
9dee80cb2d
various: fix style errors
2023-12-18 09:34:01 -08:00
Bo Anderson
688d87e839
Remove Ruby 2.6 & macOS system Ruby support code
2023-12-12 03:44:31 +00:00
Bo Anderson
b42256d286
Deprecate, disable & delete code for Homebrew 4.2.0
2023-12-07 23:42:13 +00:00
Bo Anderson
cc0a249f48
unpack_strategy/zip: fix super ancestor on macOS without Sorbet Runtime
2023-12-04 16:34:03 +00:00