-2118
-2119
-2120
+2128
+2129
+2130
- # File 'formula.rb', line 2118
+ # File 'formula.rb', line 2128
def self.names
@names ||= (core_names + tap_names.map { |name| name.split("/").last }).uniq.sort
@@ -12371,12 +12372,12 @@
-4031
-4032
-4033
+4042
+4043
+4044
|
- # File 'formula.rb', line 4031
+ # File 'formula.rb', line 4042
def needs(*standards)
specs.each { |spec| spec.needs(*standards) }
@@ -12457,15 +12458,15 @@
-3424
-3425
-3426
-3427
-3428
-3429
+3434
+3435
+3436
+3437
+3438
+3439
|
- # File 'formula.rb', line 3424
+ # File 'formula.rb', line 3434
def network_access_allowed?(phase)
raise ArgumentError, "Unknown phase: #{phase}" unless SUPPORTED_NETWORK_ACCESS_PHASES.include?(phase)
@@ -12645,12 +12646,12 @@ Examples
-3907
-3908
-3909
+3918
+3919
+3920
|
- # File 'formula.rb', line 3907
+ # File 'formula.rb', line 3918
def patch(strip = :p1, src = nil, &block)
specs.each { |spec| spec.patch(strip, src, &block) }
@@ -12718,17 +12719,6 @@ Examples
-4146
-4147
-4148
-4149
-4150
-4151
-4152
-4153
-4154
-4155
-4156
4157
4158
4159
@@ -12752,10 +12742,21 @@ Examples
4177
4178
4179
-4180
- |
-
- # File 'formula.rb', line 4146
+4180
+4181
+4182
+4183
+4184
+4185
+4186
+4187
+4188
+4189
+4190
+4191
+ |
+
+ # File 'formula.rb', line 4157
def pour_bottle?(only_if: nil, &block)
@pour_bottle_check = PourBottleCheck.new(self)
@@ -12827,18 +12828,18 @@
-2146
-2147
-2148
-2149
-2150
-2151
-2152
-2153
-2154
+2156
+2157
+2158
+2159
+2160
+2161
+2162
+2163
+2164
|
- # File 'formula.rb', line 2146
+ # File 'formula.rb', line 2156
def self.racks
Formula.cache[:racks] ||= if HOMEBREW_CELLAR.directory?
@@ -12857,7 +12858,7 @@
- .resource(name, klass = Resource, &block) ⇒ Object
+ .resource(name, klass = Resource, &block) ⇒ void
@@ -12865,7 +12866,7 @@
- Additional downloads can be defined as resources and accessed in the
+ This method returns an undefined value. Additional downloads can be defined as resources and accessed in the
install method. Resources can also be defined inside a stable or
head block. This mechanism replaces ad-hoc "subformula" classes.
@@ -12881,7 +12882,46 @@ Example
@@ -12889,14 +12929,14 @@ Example
-3713
-3714
-3715
-3716
-3717
+3724
+3725
+3726
+3727
+3728
- # File 'formula.rb', line 3713
+ # File 'formula.rb', line 3724
def resource(name, klass = Resource, &block)
specs.each do |spec|
@@ -12954,12 +12994,12 @@
-3460
-3461
-3462
+3470
+3471
+3472
|
- # File 'formula.rb', line 3460
+ # File 'formula.rb', line 3470
def service?
@service_block.present?
@@ -13008,14 +13048,14 @@ Examples
-3944
-3945
-3946
-3947
-3948
+3955
+3956
+3957
+3958
+3959
|
- # File 'formula.rb', line 3944
+ # File 'formula.rb', line 3955
def skip_clean(*paths)
paths.flatten!
@@ -13056,12 +13096,12 @@
-3507
-3508
-3509
+3517
+3518
+3519
|
- # File 'formula.rb', line 3507
+ # File 'formula.rb', line 3517
def spec_syms
[:stable, :head].freeze
@@ -13101,14 +13141,14 @@
-3512
-3513
-3514
-3515
-3516
+3522
+3523
+3524
+3525
+3526
|
- # File 'formula.rb', line 3512
+ # File 'formula.rb', line 3522
def specs
spec_syms.map do |sym|
@@ -13150,12 +13190,12 @@
-2188
-2189
-2190
+2198
+2199
+2200
|
- # File 'formula.rb', line 2188
+ # File 'formula.rb', line 2198
def self.tap_aliases
@tap_aliases ||= Tap.reject(&:core_tap?).flat_map(&:aliases).sort
@@ -13195,12 +13235,12 @@
-2113
-2114
-2115
+2123
+2124
+2125
|
- # File 'formula.rb', line 2113
+ # File 'formula.rb', line 2123
def self.tap_files
@tap_files ||= Tap.reject(&:core_tap?).flat_map(&:formula_files)
@@ -13240,12 +13280,12 @@
-2108
-2109
-2110
+2118
+2119
+2120
|
- # File 'formula.rb', line 2108
+ # File 'formula.rb', line 2118
def self.tap_names
@tap_names ||= Tap.reject(&:core_tap?).flat_map(&:formula_names).sort
@@ -13329,12 +13369,12 @@ Examples
-4071
-4072
-4073
+4082
+4083
+4084
|
- # File 'formula.rb', line 4071
+ # File 'formula.rb', line 4082
def test(&block)
define_method(:test, &block)
@@ -13400,12 +13440,12 @@
-3806
-3807
-3808
+3817
+3818
+3819
|
- # File 'formula.rb', line 3806
+ # File 'formula.rb', line 3817
def uses_from_macos(dep, bounds = {})
specs.each { |spec| spec.uses_from_macos(dep, bounds) }
@@ -13464,16 +13504,16 @@
-1184
-1185
-1186
-1187
-1188
-1189
-1190
+1194
+1195
+1196
+1197
+1198
+1199
+1200
|
- # File 'formula.rb', line 1184
+ # File 'formula.rb', line 1194
def active_log_prefix
if active_log_type
@@ -13618,12 +13658,12 @@
-1709
-1710
-1711
+1719
+1720
+1721
|
- # File 'formula.rb', line 1709
+ # File 'formula.rb', line 1719
def alias_changed?
installed_alias_target_changed? || supersedes_an_installed_formula?
@@ -13676,12 +13716,12 @@
-582
-583
-584
+592
+593
+594
|
- # File 'formula.rb', line 582
+ # File 'formula.rb', line 592
def aliases
@aliases ||= tap&.alias_reverse_table&.dig(full_name)&.map { _1.split("/").last } || []
@@ -13825,15 +13865,15 @@
-2271
-2272
-2273
-2274
-2275
-2276
+2281
+2282
+2283
+2284
+2285
+2286
|
- # File 'formula.rb', line 2271
+ # File 'formula.rb', line 2281
def any_installed_keg
Formula.cache[:any_installed_keg] ||= {}
@@ -13889,16 +13929,16 @@
-2282
-2283
-2284
-2285
-2286
-2287
-2288
+2292
+2293
+2294
+2295
+2296
+2297
+2298
|
- # File 'formula.rb', line 2282
+ # File 'formula.rb', line 2292
def any_installed_prefix
if optlinked? && opt_prefix.exist?
@@ -13943,12 +13983,12 @@
-2292
-2293
-2294
+2302
+2303
+2304
|
- # File 'formula.rb', line 2292
+ # File 'formula.rb', line 2302
def any_installed_version
any_installed_keg&.version
@@ -14001,12 +14041,12 @@
-646
-647
-648
+656
+657
+658
|
- # File 'formula.rb', line 646
+ # File 'formula.rb', line 656
def any_version_installed?
installed_prefixes.any? { |keg| (keg/Tab::FILENAME).file? }
@@ -14057,12 +14097,12 @@
-1142
-1143
-1144
+1152
+1153
+1154
|
- # File 'formula.rb', line 1142
+ # File 'formula.rb', line 1152
def bash_completion
prefix/"etc/bash_completion.d"
@@ -14124,12 +14164,12 @@ Examples
-788
-789
-790
+798
+799
+800
|
- # File 'formula.rb', line 788
+ # File 'formula.rb', line 798
def bin
prefix/"bin"
@@ -14392,16 +14432,6 @@
-2590
-2591
-2592
-2593
-2594
-2595
-2596
-2597
-2598
-2599
2600
2601
2602
@@ -14418,10 +14448,20 @@
2613
2614
2615
-2616
+2616
+2617
+2618
+2619
+2620
+2621
+2622
+2623
+2624
+2625
+2626
|
- # File 'formula.rb', line 2590
+ # File 'formula.rb', line 2600
def bottle_hash(compact_for_api: false)
bottle_spec = T.must(stable).bottle_specification
@@ -14500,12 +14540,12 @@
-1172
-1173
-1174
+1182
+1183
+1184
|
- # File 'formula.rb', line 1172
+ # File 'formula.rb', line 1182
def bottle_prefix
prefix/".bottle"
@@ -14647,14 +14687,14 @@
-3136
-3137
-3138
-3139
-3140
+3146
+3147
+3148
+3149
+3150
|
- # File 'formula.rb', line 3136
+ # File 'formula.rb', line 3146
def bottle_tab_attributes
return {} unless bottled?
@@ -14877,16 +14917,6 @@
-1577
-1578
-1579
-1580
-1581
-1582
-1583
-1584
-1585
-1586
1587
1588
1589
@@ -14909,10 +14939,20 @@
1606
1607
1608
-1609
+1609
+1610
+1611
+1612
+1613
+1614
+1615
+1616
+1617
+1618
+1619
|
- # File 'formula.rb', line 1577
+ # File 'formula.rb', line 1587
def brew(fetch: true, keep_tmp: false, debug_symbols: false, interactive: false)
@prefix_returns_versioned_prefix = true
@@ -15031,10 +15071,10 @@
-96
+93
|
- # File 'sorbet/rbi/parlour.rbi', line 96
+ # File 'sorbet/rbi/parlour.rbi', line 93
def cached_download(*args, **options, &block); end
|
@@ -15107,12 +15147,12 @@ Example
-1454
-1455
-1456
+1464
+1465
+1466
- # File 'formula.rb', line 1454
+ # File 'formula.rb', line 1464
def caveats
nil
@@ -15151,13 +15191,13 @@
-2668
-2669
-2670
-2671
+2678
+2679
+2680
+2681
|
- # File 'formula.rb', line 2668
+ # File 'formula.rb', line 2678
def caveats_with_placeholders
caveats&.gsub(HOMEBREW_PREFIX, HOMEBREW_PREFIX_PLACEHOLDER)
@@ -15247,10 +15287,10 @@
-99
+96
|
- # File 'sorbet/rbi/parlour.rbi', line 99
+ # File 'sorbet/rbi/parlour.rbi', line 96
def clear_cache(*args, **options, &block); end
|
@@ -15337,10 +15377,10 @@
-114
+111
- # File 'sorbet/rbi/parlour.rbi', line 114
+ # File 'sorbet/rbi/parlour.rbi', line 111
def compiler_failures(*args, **options, &block); end
|
@@ -15391,10 +15431,10 @@
-2249
+2259
- # File 'formula.rb', line 2249
+ # File 'formula.rb', line 2259
def conflicts = self.class.conflicts
|
@@ -15445,12 +15485,12 @@
@@ -24450,10 +24504,10 @@
-588
+598
|
- # File 'formula.rb', line 588
+ # File 'formula.rb', line 598
def_delegator :"active_spec.resources", :values, :resources
|
@@ -24544,16 +24598,16 @@ Example
-1909
-1910
-1911
-1912
-1913
-1914
-1915
+1919
+1920
+1921
+1922
+1923
+1924
+1925
- # File 'formula.rb', line 1909
+ # File 'formula.rb', line 1919
def rpath(source: bin, target: lib)
unless target.to_s.start_with?(HOMEBREW_PREFIX)
@@ -24609,12 +24663,12 @@
-2370
-2371
-2372
+2380
+2381
+2382
|
- # File 'formula.rb', line 2370
+ # File 'formula.rb', line 2380
def ruby_source_checksum
Checksum.new(Digest::SHA256.file(path).hexdigest) if path.exist?
@@ -24666,12 +24720,12 @@
-2365
-2366
-2367
+2375
+2376
+2377
|
- # File 'formula.rb', line 2365
+ # File 'formula.rb', line 2375
def ruby_source_path
path.relative_path_from(T.must(tap).path).to_s if tap && path.exist?
@@ -24710,16 +24764,6 @@
-1398
-1399
-1400
-1401
-1402
-1403
-1404
-1405
-1406
-1407
1408
1409
1410
@@ -24738,10 +24782,20 @@
1423
1424
1425
-1426
+1426
+1427
+1428
+1429
+1430
+1431
+1432
+1433
+1434
+1435
+1436
|
- # File 'formula.rb', line 1398
+ # File 'formula.rb', line 1408
def run_post_install
@prefix_returns_versioned_prefix = true
@@ -24806,16 +24860,6 @@
-2767
-2768
-2769
-2770
-2771
-2772
-2773
-2774
-2775
-2776
2777
2778
2779
@@ -24841,10 +24885,20 @@
2799
2800
2801
-2802
+2802
+2803
+2804
+2805
+2806
+2807
+2808
+2809
+2810
+2811
+2812
|
- # File 'formula.rb', line 2767
+ # File 'formula.rb', line 2777
def run_test(keep_tmp: false)
@prefix_returns_versioned_prefix = true
@@ -24917,16 +24971,6 @@
-2299
-2300
-2301
-2302
-2303
-2304
-2305
-2306
-2307
-2308
2309
2310
2311
@@ -24935,10 +24979,20 @@
2314
2315
2316
-2317
+2317
+2318
+2319
+2320
+2321
+2322
+2323
+2324
+2325
+2326
+2327
|
- # File 'formula.rb', line 2299
+ # File 'formula.rb', line 2309
def runtime_dependencies(read_from_tab: true, undeclared: true)
deps = if read_from_tab && undeclared &&
@@ -24994,22 +25048,22 @@
-2320
-2321
-2322
-2323
-2324
-2325
-2326
-2327
-2328
-2329
2330
2331
-2332
+2332
+2333
+2334
+2335
+2336
+2337
+2338
+2339
+2340
+2341
+2342
|
- # File 'formula.rb', line 2320
+ # File 'formula.rb', line 2330
def runtime_formula_dependencies(read_from_tab: true, undeclared: true)
cache_key = "#{full_name}-#{read_from_tab}-#{undeclared}"
@@ -25058,25 +25112,25 @@
-2334
-2335
-2336
-2337
-2338
-2339
-2340
-2341
-2342
-2343
2344
2345
2346
2347
2348
-2349
+2349
+2350
+2351
+2352
+2353
+2354
+2355
+2356
+2357
+2358
+2359
|
- # File 'formula.rb', line 2334
+ # File 'formula.rb', line 2344
def runtime_installed_formula_dependents
|
- # File 'formula.rb', line 982
+ # File 'formula.rb', line 992
def sbin
prefix/"sbin"
@@ -25184,16 +25238,6 @@
-2643
-2644
-2645
-2646
-2647
-2648
-2649
-2650
-2651
-2652
2653
2654
2655
@@ -25207,10 +25251,20 @@
2663
2664
2665
-2666
+2666
+2667
+2668
+2669
+2670
+2671
+2672
+2673
+2674
+2675
+2676
|
- # File 'formula.rb', line 2643
+ # File 'formula.rb', line 2653
def serialized_requirements
requirements = self.class.spec_syms.to_h do |sym|
@@ -25271,12 +25325,12 @@
-1270
-1271
-1272
+1280
+1281
+1282
|
- # File 'formula.rb', line 1270
+ # File 'formula.rb', line 1280
def service
@service ||= Homebrew::Service.new(self, &self.class.service)
@@ -25427,12 +25481,12 @@
-1247
-1248
-1249
+1257
+1258
+1259
|
- # File 'formula.rb', line 1247
+ # File 'formula.rb', line 1257
def service_name
service.service_name
@@ -25504,12 +25558,12 @@ Examples
-1018
-1019
-1020
+1028
+1029
+1030
|
- # File 'formula.rb', line 1018
+ # File 'formula.rb', line 1028
def share
prefix/"share"
@@ -25692,15 +25746,15 @@
-1474
-1475
-1476
-1477
-1478
-1479
+1484
+1485
+1486
+1487
+1488
+1489
|
- # File 'formula.rb', line 1474
+ # File 'formula.rb', line 1484
def skip_clean?(path)
return true if path.extname == ".la" && self.class.skip_clean_paths.include?(:la)
@@ -25755,12 +25809,12 @@
-1559
-1560
-1561
+1569
+1570
+1571
|
- # File 'formula.rb', line 1559
+ # File 'formula.rb', line 1569
def skip_cxxstdlib_check?
false
@@ -25973,20 +26027,20 @@
-1839
-1840
-1841
-1842
-1843
-1844
-1845
-1846
-1847
-1848
-1849
+1849
+1850
+1851
+1852
+1853
+1854
+1855
+1856
+1857
+1858
+1859
|
- # File 'formula.rb', line 1839
+ # File 'formula.rb', line 1849
def std_cabal_v2_args
env = T.cast(ENV, T.any(Stdenv, Superenv))
@@ -26077,12 +26131,12 @@
-1796
-1797
-1798
+1806
+1807
+1808
|
- # File 'formula.rb', line 1796
+ # File 'formula.rb', line 1806
def std_cargo_args(root: prefix, path: ".")
["--locked", "--root=#{root}", "--path=#{path}"]
@@ -26294,13 +26348,13 @@
-1787
-1788
-1789
-1790
+1797
+1798
+1799
+1800
|
- # File 'formula.rb', line 1787
+ # File 'formula.rb', line 1797
def std_configure_args(prefix: self.prefix, libdir: "lib")
libdir = Pathname(libdir).expand_path(prefix)
@@ -26384,14 +26438,14 @@
-1831
-1832
-1833
-1834
-1835
+1841
+1842
+1843
+1844
+1845
|
- # File 'formula.rb', line 1831
+ # File 'formula.rb', line 1841
def std_go_args(output: bin/name, ldflags: nil)
args = ["-trimpath", "-o=#{output}"]
@@ -26446,12 +26500,12 @@
-1853
-1854
-1855
+1863
+1864
+1865
|
- # File 'formula.rb', line 1853
+ # File 'formula.rb', line 1863
def std_meson_args
["--prefix=#{prefix}", "--libdir=#{lib}", "--buildtype=release", "--wrap-mode=nofallback"]
@@ -26534,15 +26588,15 @@
-1862
-1863
-1864
-1865
-1866
-1867
+1872
+1873
+1874
+1875
+1876
+1877
|
- # File 'formula.rb', line 1862
+ # File 'formula.rb', line 1872
def std_pip_args(prefix: self.prefix, build_isolation: false)
args = ["--verbose", "--no-deps", "--no-binary=:all:", "--ignore-installed", "--no-compile"]
@@ -26598,12 +26652,12 @@
-1702
-1703
-1704
+1712
+1713
+1714
|
- # File 'formula.rb', line 1702
+ # File 'formula.rb', line 1712
def supersedes_an_installed_formula?
old_installed_formulae.any?
@@ -26765,16 +26819,6 @@ Examples
-2949
-2950
-2951
-2952
-2953
-2954
-2955
-2956
-2957
-2958
2959
2960
2961
@@ -26868,10 +26912,20 @@ Examples
3049
3050
3051
-3052
+3052
+3053
+3054
+3055
+3056
+3057
+3058
+3059
+3060
+3061
+3062
|
- # File 'formula.rb', line 2949
+ # File 'formula.rb', line 2959
def system(cmd, *args)
verbose_using_dots = Homebrew::EnvConfig.verbose_using_dots?
@@ -27025,12 +27079,12 @@
-1259
-1260
-1261
+1269
+1270
+1271
|
- # File 'formula.rb', line 1259
+ # File 'formula.rb', line 1269
def systemd_service_path
opt_prefix/"#{service_name}.service"
@@ -27083,12 +27137,12 @@
-1265
-1266
-1267
+1275
+1276
+1277
|
- # File 'formula.rb', line 1265
+ # File 'formula.rb', line 1275
def systemd_timer_path
opt_prefix/"#{service_name}.timer"
@@ -27141,14 +27195,14 @@
-2220
-2221
-2222
-2223
-2224
+2230
+2231
+2232
+2233
+2234
|
- # File 'formula.rb', line 2220
+ # File 'formula.rb', line 2230
def tap?
return false unless tap
@@ -27189,12 +27243,12 @@
-2240
-2241
-2242
+2250
+2251
+2252
|
- # File 'formula.rb', line 2240
+ # File 'formula.rb', line 2250
def tap_git_head
tap&.git_head
@@ -27233,10 +27287,10 @@
-2809
+2819
|
- # File 'formula.rb', line 2809
+ # File 'formula.rb', line 2819
def test; end
|
@@ -27286,12 +27340,12 @@
-2805
-2806
-2807
+2815
+2816
+2817
- # File 'formula.rb', line 2805
+ # File 'formula.rb', line 2815
def test_defined?
false
@@ -27330,12 +27384,12 @@
-2811
-2812
-2813
+2821
+2822
+2823
|
- # File 'formula.rb', line 2811
+ # File 'formula.rb', line 2821
def test_fixtures(file)
HOMEBREW_LIBRARY_PATH/"test/support/fixtures"/file
@@ -27395,16 +27449,16 @@
-1926
-1927
-1928
-1929
-1930
-1931
-1932
+1936
+1937
+1938
+1939
+1940
+1941
+1942
|
- # File 'formula.rb', line 1926
+ # File 'formula.rb', line 1936
def time
if ENV["SOURCE_DATE_EPOCH"].present?
@@ -27447,16 +27501,6 @@
-2389
-2390
-2391
-2392
-2393
-2394
-2395
-2396
-2397
-2398
2399
2400
2401
@@ -27530,10 +27574,20 @@
2469
2470
2471
-2472
+2472
+2473
+2474
+2475
+2476
+2477
+2478
+2479
+2480
+2481
+2482
|
- # File 'formula.rb', line 2389
+ # File 'formula.rb', line 2399
def to_hash
hsh = {
@@ -27653,16 +27707,6 @@
-2536
-2537
-2538
-2539
-2540
-2541
-2542
-2543
-2544
-2545
2546
2547
2548
@@ -27704,10 +27748,20 @@
2584
2585
2586
-2587
+2587
+2588
+2589
+2590
+2591
+2592
+2593
+2594
+2595
+2596
+2597
|
- # File 'formula.rb', line 2536
+ # File 'formula.rb', line 2546
def to_hash_with_variations(hash_method: :to_hash)
if loaded_from_api? && hash_method == :to_internal_api_hash
@@ -27795,16 +27849,6 @@
-2474
-2475
-2476
-2477
-2478
-2479
-2480
-2481
-2482
-2483
2484
2485
2486
@@ -27855,10 +27899,20 @@
2531
2532
2533
-2534
+2534
+2535
+2536
+2537
+2538
+2539
+2540
+2541
+2542
+2543
+2544
|
- # File 'formula.rb', line 2474
+ # File 'formula.rb', line 2484
def to_internal_api_hash
api_hash = {
@@ -27955,13 +28009,13 @@
-1625
-1626
-1627
-1628
+1635
+1636
+1637
+1638
|
- # File 'formula.rb', line 1625
+ # File 'formula.rb', line 1635
def unlock
@lock&.unlock
@@ -28051,10 +28105,10 @@
-153
+150
|
- # File 'sorbet/rbi/parlour.rbi', line 153
+ # File 'sorbet/rbi/parlour.rbi', line 150
def unpin(*args, **options, &block); end
|
@@ -28163,16 +28217,6 @@
-2618
-2619
-2620
-2621
-2622
-2623
-2624
-2625
-2626
-2627
2628
2629
2630
@@ -28186,10 +28230,20 @@
2638
2639
2640
-2641
+2641
+2642
+2643
+2644
+2645
+2646
+2647
+2648
+2649
+2650
+2651
- # File 'formula.rb', line 2618
+ # File 'formula.rb', line 2628
def urls_hash
hash = {}
@@ -28252,12 +28306,12 @@
-599
-600
-601
+609
+610
+611
|
- # File 'formula.rb', line 599
+ # File 'formula.rb', line 609
def uses_from_macos_elements
odisabled "`Formula#uses_from_macos_elements`", "`Formula#declared_deps`"
@@ -28299,12 +28353,12 @@
-604
-605
-606
+614
+615
+616
|
- # File 'formula.rb', line 604
+ # File 'formula.rb', line 614
def uses_from_macos_names
odisabled "`Formula#uses_from_macos_names`", "`Formula#declared_deps`"
@@ -28413,12 +28467,12 @@
-1109
-1110
-1111
+1119
+1120
+1121
|
- # File 'formula.rb', line 1109
+ # File 'formula.rb', line 1119
def var
HOMEBREW_PREFIX/"var"
@@ -28457,12 +28511,12 @@
-2763
-2764
-2765
+2773
+2774
+2775
|
- # File 'formula.rb', line 2763
+ # File 'formula.rb', line 2773
def verify_download_integrity(filename)
active_spec.verify_download_integrity(filename)
@@ -28810,16 +28864,16 @@
-1193
-1194
-1195
-1196
-1197
-1198
-1199
+1203
+1204
+1205
+1206
+1207
+1208
+1209
|
- # File 'formula.rb', line 1193
+ # File 'formula.rb', line 1203
def with_logging(log_type)
old_log_type = @active_log_type
@@ -28878,18 +28932,18 @@
-3114
-3115
-3116
-3117
-3118
-3119
-3120
-3121
-3122
+3124
+3125
+3126
+3127
+3128
+3129
+3130
+3131
+3132
|
- # File 'formula.rb', line 3114
+ # File 'formula.rb', line 3124
def xcodebuild(*args)
removed = ENV.remove_cc_etc
@@ -28946,12 +29000,12 @@
-1153
-1154
-1155
+1163
+1164
+1165
|
- # File 'formula.rb', line 1153
+ # File 'formula.rb', line 1163
def zsh_completion
share/"zsh/site-functions"
@@ -29002,12 +29056,12 @@
-1120
-1121
-1122
+1130
+1131
+1132
|
- # File 'formula.rb', line 1120
+ # File 'formula.rb', line 1130
def zsh_function
share/"zsh/site-functions"
diff --git a/docs/FormulaInstaller.html b/docs/FormulaInstaller.html
index 1330c33fa..1c3356510 100644
--- a/docs/FormulaInstaller.html
+++ b/docs/FormulaInstaller.html
@@ -2614,12 +2614,12 @@
-1337
-1338
-1339
+1347
+1348
+1349
|
- # File 'formula_installer.rb', line 1337
+ # File 'formula_installer.rb', line 1347
def self.locked
@locked ||= []
@@ -2664,16 +2664,16 @@
-1329
-1330
-1331
-1332
-1333
-1334
-1335
+1339
+1340
+1341
+1342
+1343
+1344
+1345
|
- # File 'formula_installer.rb', line 1329
+ # File 'formula_installer.rb', line 1339
def audit_installed
unless formula.keg_only?
@@ -3924,10 +3924,10 @@
-221
+218
|
- # File 'sorbet/rbi/parlour.rbi', line 221
+ # File 'sorbet/rbi/parlour.rbi', line 218
def debug?; end
|
@@ -3977,10 +3977,10 @@
-215
+212
- # File 'sorbet/rbi/parlour.rbi', line 215
+ # File 'sorbet/rbi/parlour.rbi', line 212
def debug_symbols?; end
|
@@ -4996,16 +4996,6 @@
-1425
-1426
-1427
-1428
-1429
-1430
-1431
-1432
-1433
-1434
1435
1436
1437
@@ -5038,10 +5028,20 @@
1464
1465
1466
-1467
+1467
+1468
+1469
+1470
+1471
+1472
+1473
+1474
+1475
+1476
+1477
- # File 'formula_installer.rb', line 1425
+ # File 'formula_installer.rb', line 1435
def forbidden_formula_check
forbidden_formulae = Set.new(Homebrew::EnvConfig.forbidden_formulae.to_s.split)
@@ -5133,16 +5133,6 @@
-1342
-1343
-1344
-1345
-1346
-1347
-1348
-1349
-1350
-1351
1352
1353
1354
@@ -5171,10 +5161,20 @@
1377
1378
1379
-1380
+1380
+1381
+1382
+1383
+1384
+1385
+1386
+1387
+1388
+1389
+1390
|
- # File 'formula_installer.rb', line 1342
+ # File 'formula_installer.rb', line 1352
def forbidden_license_check
forbidden_licenses = Homebrew::EnvConfig.forbidden_licenses.to_s.dup
@@ -5262,16 +5262,6 @@
-1383
-1384
-1385
-1386
-1387
-1388
-1389
-1390
-1391
-1392
1393
1394
1395
@@ -5301,10 +5291,20 @@
1419
1420
1421
-1422
+1422
+1423
+1424
+1425
+1426
+1427
+1428
+1429
+1430
+1431
+1432
|
- # File 'formula_installer.rb', line 1383
+ # File 'formula_installer.rb', line 1393
def forbidden_tap_check
forbidden_taps = Homebrew::EnvConfig.forbidden_taps
@@ -5393,10 +5393,10 @@
-206
+203
|
- # File 'sorbet/rbi/parlour.rbi', line 206
+ # File 'sorbet/rbi/parlour.rbi', line 203
def force?; end
|
@@ -5446,10 +5446,10 @@
-191
+188
- # File 'sorbet/rbi/parlour.rbi', line 191
+ # File 'sorbet/rbi/parlour.rbi', line 188
def force_bottle?; end
|
@@ -5584,10 +5584,10 @@
-203
+200
- # File 'sorbet/rbi/parlour.rbi', line 203
+ # File 'sorbet/rbi/parlour.rbi', line 200
def git?; end
|
@@ -5637,10 +5637,10 @@
-227
+224
- # File 'sorbet/rbi/parlour.rbi', line 227
+ # File 'sorbet/rbi/parlour.rbi', line 224
def hold_locks?; end
|
@@ -5690,10 +5690,10 @@
-194
+191
- # File 'sorbet/rbi/parlour.rbi', line 194
+ # File 'sorbet/rbi/parlour.rbi', line 191
def ignore_deps?; end
|
@@ -6673,10 +6673,10 @@
-179
+176
- # File 'sorbet/rbi/parlour.rbi', line 179
+ # File 'sorbet/rbi/parlour.rbi', line 176
def installed_as_dependency?; end
|
@@ -6726,10 +6726,10 @@
-182
+179
- # File 'sorbet/rbi/parlour.rbi', line 182
+ # File 'sorbet/rbi/parlour.rbi', line 179
def installed_on_request?; end
|
@@ -6779,10 +6779,10 @@
-200
+197
- # File 'sorbet/rbi/parlour.rbi', line 200
+ # File 'sorbet/rbi/parlour.rbi', line 197
def interactive?; end
|
@@ -6832,10 +6832,10 @@
-212
+209
- # File 'sorbet/rbi/parlour.rbi', line 212
+ # File 'sorbet/rbi/parlour.rbi', line 209
def keep_tmp?; end
|
@@ -7108,10 +7108,10 @@
-197
+194
- # File 'sorbet/rbi/parlour.rbi', line 197
+ # File 'sorbet/rbi/parlour.rbi', line 194
def only_deps?; end
|
@@ -7161,10 +7161,10 @@
-209
+206
- # File 'sorbet/rbi/parlour.rbi', line 209
+ # File 'sorbet/rbi/parlour.rbi', line 206
def overwrite?; end
|
@@ -7482,7 +7482,17 @@
1316
1317
1318
-1319
+1319
+1320
+1321
+1322
+1323
+1324
+1325
+1326
+1327
+1328
+1329
# File 'formula_installer.rb', line 1259
@@ -7492,7 +7502,17 @@
ohai "Verifying attestation for #{formula.name}"
begin
Homebrew::Attestation.check_core_attestation formula.bottle
- rescue Homebrew::Attestation::InvalidAttestationError => e
+ rescue Homebrew::Attestation::GhAuthNeeded
+ raise CannotInstallFormulaError, <<~EOS
+ The bottle for #{formula.name} could not be verified.
+
+ This typically indicates a missing GitHub API token, which you
+ can resolve either by setting `HOMEBREW_GITHUB_API_TOKEN` or
+ by running:
+
+ gh auth login
+ EOS
+ rescue Homebrew::Attestation::InvalidAttestationError => e
raise CannotInstallFormulaError, <<~EOS
The bottle for #{formula.name} has an invalid build provenance attestation.
@@ -7898,15 +7918,15 @@
-1322
-1323
-1324
-1325
-1326
-1327
+1332
+1333
+1334
+1335
+1336
+1337
|
- # File 'formula_installer.rb', line 1322
+ # File 'formula_installer.rb', line 1332
def problem_if_output(output)
return unless output
@@ -7961,10 +7981,10 @@
-224
+221
|
- # File 'sorbet/rbi/parlour.rbi', line 224
+ # File 'sorbet/rbi/parlour.rbi', line 221
def quiet?; end
|
@@ -8179,10 +8199,10 @@