File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -42,14 +42,15 @@ def _prebuilt_protoc_repo_impl(rctx):
4242    )
4343    build_content  =  """\  
4444 # Generated by @rules_proto//proto/toolchains:prebuilt_protoc_toolchain.bzl
45- load("@rules_proto//proto/private/rules:proto_toolchain_rule.bzl", "proto_toolchain") 
4645
47- package(default_visibility=["//visibility:public"]) 
46+ # This is a workaround for proto_toolchain not allowing to set visibility. 
47+ package(default_visibility = ["//visibility:public"]) 
48+ 
49+ load("@rules_proto//proto:proto_toolchain.bzl", "proto_toolchain") 
4850
4951proto_toolchain( 
5052    name = "prebuilt_protoc_toolchain", 
5153    proto_compiler = "{protoc_label}", 
52-     visibility = ["//visibility:public"], 
5354) 
5455""" .format (
5556        protoc_label  =  ":bin/protoc.exe"  if  rctx .attr .platform .startswith ("win" ) else  ":bin/protoc" ,
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments