build: fix clang format/lint (#42717)
build: fix clang format/lint (#42715) * build: fix clang format path * fix: use gclient sync instead of gclient runhooks Refs https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5659261 * fix: use gclient sync instead of gclient runhooks in GHA --------- Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
This commit is contained in:
		
					parent
					
						
							
								9f1d07eb53
							
						
					
				
			
			
				commit
				
					
						bdf8c75d33
					
				
			
		
					 4 changed files with 15 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -2,7 +2,7 @@ import os
 | 
			
		|||
import subprocess
 | 
			
		||||
import sys
 | 
			
		||||
 | 
			
		||||
from lib.util import get_buildtools_executable
 | 
			
		||||
from lib.util import get_depot_tools_executable
 | 
			
		||||
 | 
			
		||||
SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__))
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -15,7 +15,7 @@ def main():
 | 
			
		|||
    os.path.join(SOURCE_ROOT, '..', 'buildtools')
 | 
			
		||||
  )
 | 
			
		||||
 | 
			
		||||
  gn_path = get_buildtools_executable('gn')
 | 
			
		||||
  gn_path = get_depot_tools_executable('gn')
 | 
			
		||||
  for gn_file in sys.argv[1:]:
 | 
			
		||||
    subprocess.check_call(
 | 
			
		||||
      [gn_path, 'format', gn_file],
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue