File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed 
main/java/com/google/devtools/build/lib/analysis/config Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -947,6 +947,7 @@ public FragmentOptions getHost() {
947947    host .archivedArtifactsMnemonicsFilter  = archivedArtifactsMnemonicsFilter ;
948948
949949    host .enableAspectHints  = enableAspectHints ;
950+     host .allowUnresolvedSymlinks  = allowUnresolvedSymlinks ;
950951
951952    return  host ;
952953  }
Original file line number Diff line number Diff line change 584584  expect_log " cycle in dependency graph" 
585585}
586586
587+ function  test_unresolved_symlink_in_exec_cfg()  {
588+   mkdir -p a
589+   cat >  a/BUILD << 'EOF '
590+ load("//symlink:symlink.bzl", "dangling_symlink") 
591+ dangling_symlink(name="a", link_target="non/existent") 
592+ genrule( 
593+     name = "exec", 
594+     srcs = [], 
595+     outs = ["out"], 
596+     cmd = "touch $@", 
597+     exec_tools = [":a"], 
598+ ) 
599+ EOF 
600+ 
601+   bazel --windows_enable_symlinks build --experimental_allow_unresolved_symlinks //a:exec ||  fail " build failed" 
602+ }
603+ 
587604run_suite " Tests for symlink artifacts" 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments