File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ bazel_dep(name = "helly25_bzl", version = "0.1.2")
2828
2929bazel_dep (name  =  "tar.bzl" , version  =  "0.6.0" )
3030tar_toolchains  =  use_extension ("@tar.bzl//tar:extensions.bzl" , "toolchains" )
31- use_repo (tar_toolchains ,
31+ use_repo (
32+     tar_toolchains ,
3233    "bsd_tar_toolchains_darwin_arm64" ,
3334    "bsd_tar_toolchains_linux_arm64" ,
3435    "bsd_tar_toolchains_linux_amd64" ,
Original file line number Diff line number Diff line change @@ -20,6 +20,25 @@ local_repository(
2020)
2121
2222load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" )
23+ 
24+ http_archive (
25+     name  =  "aspect_bazel_lib" ,
26+     sha256  =  "c4f36285ceed51f75da44ffcf8fa393794d0dc2e273a2e03be50462e347740cd" ,
27+     strip_prefix  =  "bazel-lib-2.0.0" ,
28+     url  =  "https://github.com/aspect-build/bazel-lib/releases/download/v2.0.0/bazel-lib-v2.0.0.tar.gz" ,
29+ )
30+ 
31+ http_archive (
32+     name  =  "tar.bzl" ,
33+     sha256  =  "a147d473a359742db2a43c8a9a8e04e31321582e6bb669dafc5ba6b2c59845d1" ,
34+     strip_prefix  =  "tar.bzl-0.6.0" ,
35+     url  =  "https://github.com/bazel-contrib/tar.bzl/releases/download/v0.6.0/tar.bzl-v0.6.0.tar.gz" ,
36+ )
37+ 
38+ load ("@tar.bzl//tar:extensions.bzl" , "create_repositories" )
39+ 
40+ create_repositories ()
41+ 
2342load ("@toolchains_llvm//toolchain:deps.bzl" , "bazel_toolchain_dependencies" )
2443
2544bazel_toolchain_dependencies ()
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ def _sysroot_impl(rctx):
88
99    # Declare the sysroot files as a source directory so they can be 
1010    # optimized in the Merkle tree cache more effectively. 
11+     # Also, create the BUILD file before extracting because `bsdtar` expects the target 
12+     # directory to exist, and this way Bazel creates it for us without needing `mkdir`. 
1113    rctx .file ("sysroot/BUILD.bazel" , \
1214"""filegroup( 
1315    name = "sysroot", 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments