Rather than copying the depot path into the store on each commit, assume bufCheck is run in the depot checkout (which it is, in Buildkite land). Change-Id: I4a4af2e5b45acad2d18218e503880ee63b20f078 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3462 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			299 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			299 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| # Check protobuf syntax and breaking.
 | |
| #
 | |
| { depot, pkgs, ... }:
 | |
| 
 | |
| pkgs.writeShellScriptBin "ci-buf-check" ''
 | |
|   ${depot.third_party.bufbuild}/bin/buf check lint --input .
 | |
|   # Report-only
 | |
|   ${depot.third_party.bufbuild}/bin/buf check breaking --input "." --against-input "./.git#branch=canon" || true
 | |
| ''
 |