formula_auditor: disallow non-test rustup-init dependencies
				
					
				
			We want formulae to build with our `rust` formula instead of a random toolchain downloaded with `rustup`. Unfortunately, some formulae already do this, so let's gate the check behind `--strict`. It should also prevent new formulae that build using `rustup` from being added. This should hopefully prevent PRs like Homebrew/homebrew-core#119832 from being merged.
This commit is contained in:
		
							parent
							
								
									bf0c896c34
								
							
						
					
					
						commit
						f75ccc005e
					
				@ -309,6 +309,10 @@ module Homebrew
 | 
			
		||||
 | 
			
		||||
          next unless @core_tap
 | 
			
		||||
 | 
			
		||||
          if @strict && dep.name == "rustup-init" && !dep.test?
 | 
			
		||||
            problem "Formulae should use `rust` instead of `rustup-init` to build"
 | 
			
		||||
          end
 | 
			
		||||
 | 
			
		||||
          unless dep_f.tap.core_tap?
 | 
			
		||||
            problem <<~EOS
 | 
			
		||||
              Dependency '#{dep.name}' is not in homebrew/core. Formulae in homebrew/core
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user