Add update-lock command, add module name, and add dep for rules_cc
This commit is contained in:
		
							parent
							
								
									47c5ff370d
								
							
						
					
					
						commit
						c1272bdfe1
					
				| 
						 | 
				
			
			@ -0,0 +1,5 @@
 | 
			
		|||
"""$REPO_NAME"""
 | 
			
		||||
 | 
			
		||||
module(name = "$REPO_NAME")
 | 
			
		||||
 | 
			
		||||
bazel_dep(name = "rules_cc", version = "0.0.9")
 | 
			
		||||
| 
						 | 
				
			
			@ -17,6 +17,10 @@
 | 
			
		|||
    echo "Bazel version: $(bazel --version | cut -d ' ' -f 2)"
 | 
			
		||||
  '';
 | 
			
		||||
 | 
			
		||||
  scripts.update-lock.exec = ''
 | 
			
		||||
    bazel mod deps --lockfile_mode=update
 | 
			
		||||
  '';
 | 
			
		||||
 | 
			
		||||
  scripts.build.exec = ''
 | 
			
		||||
    bazel build //main:$$NAME
 | 
			
		||||
  '';
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue