Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							24683525cb 
							
						 
					 
					
						
						
							
							Revert "Refactor Formulary::loader_for."  
						
						
						
						
					 
					
						2024-02-16 13:41:54 +00:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							fe1f6c95f5 
							
						 
					 
					
						
						
							
							Fix FromDefaultNameLoader.  
						
						
						
						
					 
					
						2024-02-14 23:09:18 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							b717f5d954 
							
						 
					 
					
						
						
							
							Remove unused TapFormulaWithOldnameAmbiguityError.  
						
						
						
						
					 
					
						2024-02-14 22:56:25 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							177e9163c2 
							
						 
					 
					
						
						
							
							Fix code style.  
						
						
						
						
					 
					
						2024-02-14 22:47:29 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f4ac2996a7 
							
						 
					 
					
						
						
							
							Fix type signature.  
						
						
						
						
					 
					
						2024-02-14 22:11:51 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ce60048192 
							
						 
					 
					
						
						
							
							Handle TapFormulaAmbiguityError in diagnostics.  
						
						
						
						
					 
					
						2024-02-14 20:28:08 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							9056613181 
							
						 
					 
					
						
						
							
							Add separate loader for default tap.  
						
						
						
						
					 
					
						2024-02-14 20:28:08 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							eb48d6be95 
							
						 
					 
					
						
						
							
							Always prefer the default tap.  
						
						
						
						
					 
					
						2024-02-14 20:28:08 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							562d5295f4 
							
						 
					 
					
						
						
							
							Remove unnecessary if.  
						
						
						
						
					 
					
						2024-02-14 20:28:08 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							22bb15748b 
							
						 
					 
					
						
						
							
							Simplify conditional.  
						
						
						
						
					 
					
						2024-02-14 20:28:07 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ba29328b59 
							
						 
					 
					
						
						
							
							Avoid T.cast.  
						
						
						
						
					 
					
						2024-02-14 20:28:07 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							0626f62077 
							
						 
					 
					
						
						
							
							Remove redundant debug output.  
						
						
						
						
					 
					
						2024-02-14 20:28:06 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							0f4d912de5 
							
						 
					 
					
						
						
							
							Remove Formulary::tap_paths again.  
						
						
						
						
					 
					
						2024-02-14 20:28:06 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ecee4aed35 
							
						 
					 
					
						
						
							
							Revert diagnostic change.  
						
						
						
						
					 
					
						2024-02-14 20:28:06 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d70f719411 
							
						 
					 
					
						
						
							
							Fix code style.  
						
						
						
						
					 
					
						2024-02-14 20:28:06 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							4641690674 
							
						 
					 
					
						
						
							
							Refactor Formulary::loader_for.  
						
						
						
						
					 
					
						2024-02-14 20:28:06 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1c4b06fce2 
							
						 
					 
					
						
						
							
							Merge pull request  #16647  from reitermarkus/uses_from_macos_sig  
						
						... 
						
						
						
						Refactor and add type signature for `uses_from_macos`. 
						
						
					 
					
						2024-02-13 19:36:11 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							eaf7b38995 
							
						 
					 
					
						
						
							
							Allow tap migrations with renames.  
						
						
						
						
					 
					
						2024-02-13 04:17:43 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c6788bb27e 
							
						 
					 
					
						
						
							
							Avoid T.unsafe.  
						
						
						
						
					 
					
						2024-02-13 00:42:54 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d9712f4d50 
							
						 
					 
					
						
						
							
							Refactor and add type signature for uses_from_macos.  
						
						
						
						
					 
					
						2024-02-13 00:31:10 +01:00 
						 
				 
			
				
					
						
							
							
								apainintheneck 
							
						 
					 
					
						
						
						
						
							
						
						
							70ffc31338 
							
						 
					 
					
						
						
							
							formulary: update logic and add regression test  
						
						
						
						
					 
					
						2024-02-11 13:09:53 -08:00 
						 
				 
			
				
					
						
							
							
								Stephan Jorek 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d01de7545c 
							
						 
					 
					
						
						
							
							refactor bugfix to satify brew audit  
						
						
						
						
					 
					
						2024-02-11 11:40:49 +01:00 
						 
				 
			
				
					
						
							
							
								Stephan Jorek 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							863654e37c 
							
						 
					 
					
						
						
							
							remove accidentally added newline  
						
						
						
						
					 
					
						2024-02-11 01:39:44 +01:00 
						 
				 
			
				
					
						
							
							
								Stephan Jorek 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1570a4b8a3 
							
						 
					 
					
						
						
							
							Fix support of formulae aliases in taps  
						
						... 
						
						
						
						Resolves : #16636  
					
						2024-02-11 00:38:47 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3e61e3b428 
							
						 
					 
					
						
						
							
							Stop following recursive tap migrations.  
						
						
						
						
					 
					
						2024-02-10 15:07:31 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f72038b116 
							
						 
					 
					
						
						
							
							Fix loading aliases from API.  
						
						
						
						
					 
					
						2024-02-08 12:19:04 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							29179e45a1 
							
						 
					 
					
						
						
							
							Refactor rename/migration handling in Formulary.  
						
						
						
						
					 
					
						2024-02-06 00:52:38 +01:00 
						 
				 
			
				
					
						
							
							
								apainintheneck 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3c503cdf56 
							
						 
					 
					
						
						
							
							Normalize service serialization method names  
						
						
						
						
					 
					
						2024-02-04 13:50:57 +01:00 
						 
				 
			
				
					
						
							
							
								Douglas Eichelberger 
							
						 
					 
					
						
						
						
						
							
						
						
							f6c7eb7124 
							
						 
					 
					
						
						
							
							Add hash/keys to extend/  
						
						
						
						
					 
					
						2024-01-19 13:36:17 -08:00 
						 
				 
			
				
					
						
							
							
								Douglas Eichelberger 
							
						 
					 
					
						
						
						
						
							
						
						
							a87cdf0d21 
							
						 
					 
					
						
						
							
							Add Hash#deep_transform_values to extend/  
						
						
						
						
					 
					
						2024-01-19 13:36:16 -08:00 
						 
				 
			
				
					
						
							
							
								Issy Long 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f682147598 
							
						 
					 
					
						
						
							
							Fix RuboCop Style/RedundantFreeze offenses  
						
						
						
						
					 
					
						2024-01-18 22:20:01 +00:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							0f0befc8e0 
							
						 
					 
					
						
						
							
							Merge pull request  #16458  from Bo98/json-freeze  
						
						... 
						
						
						
						api: use freeze option for JSON parsing 
						
						
					 
					
						2024-01-10 13:18:09 +00:00 
						 
				 
			
				
					
						
							
							
								apainintheneck 
							
						 
					 
					
						
						
						
						
							
						
						
							babbf008a1 
							
						 
					 
					
						
						
							
							formulary: allow for more keyless fields when loading from API  
						
						... 
						
						
						
						These were fields I missed the first time around. Now the values
line up with the expected values. 
						
						
					 
					
						2024-01-09 23:33:20 -08:00 
						 
				 
			
				
					
						
							
							
								Bo Anderson 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1c3c64a743 
							
						 
					 
					
						
						
							
							api: use freeze option for JSON parsing  
						
						
						
						
					 
					
						2024-01-09 19:07:36 +00:00 
						 
				 
			
				
					
						
							
							
								Bo Anderson 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							310b5ecbe7 
							
						 
					 
					
						
						
							
							Introduce Formulary platform cache  
						
						
						
						
					 
					
						2024-01-09 11:12:49 +00:00 
						 
				 
			
				
					
						
							
							
								apainintheneck 
							
						 
					 
					
						
						
						
						
							
						
						
							984dcf8c11 
							
						 
					 
					
						
						
							
							API: Load casks/formula from JSON with missing keys  
						
						... 
						
						
						
						We'd like to reduce the size of the API JSON and to do that we are
going to remove unused and/or blank elements from the cask/formula
definition. This will reduce the amount of data that has to go
over the wire and make it easier to load this data into memory. 
						
						
					 
					
						2024-01-01 19:10:48 -08:00 
						 
				 
			
				
					
						
							
							
								Rylan Polster 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							641a80475e 
							
						 
					 
					
						
						
							
							Update cask logic to handle deprecations and disables  
						
						
						
						
					 
					
						2023-12-16 20:01:47 -05:00 
						 
				 
			
				
					
						
							
							
								Rylan Polster 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							036723a668 
							
						 
					 
					
						
						
							
							Add deprecate! and disable! methods to the Cask DSL  
						
						
						
						
					 
					
						2023-12-16 20:01:46 -05:00 
						 
				 
			
				
					
						
							
							
								Bo Anderson 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							fe011ca0f9 
							
						 
					 
					
						
						
							
							Partially support pour_bottle? in API  
						
						
						
						
					 
					
						2023-12-07 18:05:41 +00:00 
						 
				 
			
				
					
						
							
							
								Rylan Polster 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							fb50cfa13d 
							
						 
					 
					
						
						
							
							Simplify tap assignment  
						
						
						
						
					 
					
						2023-11-13 14:12:35 -05:00 
						 
				 
			
				
					
						
							
							
								Rylan Polster 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							74996ab32c 
							
						 
					 
					
						
						
							
							Remove new tap parameter to FormulaAPILoader  
						
						
						
						
					 
					
						2023-11-13 14:07:34 -05:00 
						 
				 
			
				
					
						
							
							
								Rylan Polster 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							aa316109d9 
							
						 
					 
					
						
						
							
							Pass new tap to TapLoader  
						
						... 
						
						
						
						Co-authored-by: Alexander Mancevice <alexander.mancevice@hey.com> 
						
						
					 
					
						2023-11-13 14:02:50 -05:00 
						 
				 
			
				
					
						
							
							
								Rylan Polster 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							237a42974b 
							
						 
					 
					
						
						
							
							Pass original tap to formula when loaded from the API via TapLoader  
						
						
						
						
					 
					
						2023-11-13 13:40:44 -05:00 
						 
				 
			
				
					
						
							
							
								Rylan Polster 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							97b411906d 
							
						 
					 
					
						
						
							
							Refactor TapLoader to fix tap migrations with API  
						
						
						
						
					 
					
						2023-11-11 16:48:05 -05:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							41dc533add 
							
						 
					 
					
						
						
							
							Merge pull request  #16108  from Bo98/api-rename-fix  
						
						... 
						
						
						
						formulary: load from API for formula renames 
						
						
					 
					
						2023-10-12 17:49:58 +01:00 
						 
				 
			
				
					
						
							
							
								Bo Anderson 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							408e15f485 
							
						 
					 
					
						
						
							
							formulary: load from API for formula renames  
						
						
						
						
					 
					
						2023-10-12 17:04:54 +01:00 
						 
				 
			
				
					
						
							
							
								Eric Knibbe 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							03e743a75e 
							
						 
					 
					
						
						
							
							api: add using: attribute to head & stable URLs  
						
						
						
						
					 
					
						2023-10-11 14:14:18 -04:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							b7114651ac 
							
						 
					 
					
						
						
							
							utils/curl: include or use explicitly.  
						
						... 
						
						
						
						Include or use `Utils::Curl` explicitly everywhere it is used. 
						
						
					 
					
						2023-09-04 22:17:57 -04:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							b3c33d34ab 
							
						 
					 
					
						
						
							
							Various sharding fixes  
						
						... 
						
						
						
						- Load paths with no API when needed (e.g. for `brew edit`)
- Use no API mode for `brew log` as it's needed there
- Define sharding format for homebrew-cask and homebrew-core inside
  `Tap` methods
- Create new formulae/casks in location defined by these `Tap` methods
- Fix a bug in Formulary that made sharded formulae lookup less
  efficient (and possibly broke it for core and some API usage)
- Fix various other hardcoded Formula/Cask directory assumptions
Co-authored-by: Bo Anderson <mail@boanderson.me> 
						
						
					 
					
						2023-08-04 16:43:13 +01:00 
						 
				 
			
				
					
						
							
							
								Ruoyu Zhong 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							26f8f27b3c 
							
						 
					 
					
						
						
							
							formulary: fix type of alias_path  
						
						... 
						
						
						
						`Formulary.from_rack` only allows `alias_path` to be a `Pathname`. Make
it happy with `String`s too.
Fixes:
    $ brew test openssl
    Error: Parameter 'alias_path': Expected type Pathname, got type String with value "/usr/local/Homebrew/Librar...homebrew-core/Aliases/openssl"
    Caller: /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/sorbet-runtime-0.5.10461/lib/types/private/methods/call_validation.rb:113
    Definition: /usr/local/Homebrew/Library/Homebrew/formulary.rb:787
Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com> 
						
						
					 
					
						2023-08-02 22:49:39 +08:00