Remove redundant check from ctx.actions.symlink.
If ctx.actions.symlink is called with a target_path argument, the output must be an unresolved symlink created by declare_symlink, which already requires --experimental_allow_unresolved_symlinks to be enabled.
@@ -311,12 +311,6 @@ public class StarlarkActionFactory implements StarlarkActionFactoryApi {
ruleContext.getActionOwner(), inputArtifact, outputArtifact, progressMessage);
}
} else {
- if (!ruleContext.getConfiguration().allowUnresolvedSymlinks()) {
- throw Starlark.errorf(
- "actions.symlink() to unresolved symlink is not allowed; "
- + "use the --experimental_allow_unresolved_symlinks command line option");
- }
-
if (!outputArtifact.isSymlink()) {
throw Starlark.errorf(
"symlink() with \"target_path\" param requires that \"output\" be declared as a "
