Commit fea32be 1 parent 6a3f6fb commit fea32be Copy full SHA for fea32be
File tree 2 files changed +18
-0
lines changed
main/java/com/google/devtools/build/lib/analysis/config
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -947,6 +947,7 @@ public FragmentOptions getHost() {
947
947
host .archivedArtifactsMnemonicsFilter = archivedArtifactsMnemonicsFilter ;
948
948
949
949
host .enableAspectHints = enableAspectHints ;
950
+ host .allowUnresolvedSymlinks = allowUnresolvedSymlinks ;
950
951
951
952
return host ;
952
953
}
Original file line number Diff line number Diff line change 584
584
expect_log " cycle in dependency graph"
585
585
}
586
586
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
+
587
604
run_suite " Tests for symlink artifacts"
You can’t perform that action at this time.
0 commit comments