buf lint already happens in other individual targets, and as no generation happens in here anymore either, there's no need to check for git status to record changes anymore. Change-Id: Ieb8fc4760a61dd0f0e03f0ec388062dd2303c37a Reviewed-on: https://cl.tvl.fyi/c/depot/+/9789 Tested-by: BuildkiteCI Reviewed-by: Connor Brewster <cbrewster@hey.com>
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			315 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			315 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| # Check protobuf breaking. Lints already happen in individual targets.
 | |
| #
 | |
| { depot, pkgs, ... }:
 | |
| 
 | |
| pkgs.writeShellScriptBin "ci-buf-check" ''
 | |
|   export PATH="$PATH:${pkgs.lib.makeBinPath [ pkgs.buf ]}"
 | |
|   # Report-only
 | |
|   (cd $(git rev-parse --show-toplevel) && (buf breaking . --against "./.git#ref=HEAD~1" || true))
 | |
| ''
 |