diff --git a/src/main/java/com/google/devtools/build/lib/analysis/RunfilesSupport.java b/src/main/java/com/google/devtools/build/lib/analysis/RunfilesSupport.java index 75f0a1d9c0d259..acc30fa783d1f7 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/RunfilesSupport.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/RunfilesSupport.java @@ -122,7 +122,7 @@ private RunfilesSupport( Artifact artifactsMiddleman = createArtifactsMiddleman(ruleContext, runfiles.getAllArtifacts()); if (createManifest) { runfilesInputManifest = createRunfilesInputManifestArtifact(ruleContext); - runfilesManifest = createRunfilesAction(ruleContext, runfiles, artifactsMiddleman); + runfilesManifest = createRunfilesAction(ruleContext, runfiles); } else { runfilesInputManifest = runfilesManifest = createManifestMiddleman(ruleContext, runfiles, artifactsMiddleman); @@ -282,16 +282,14 @@ private Artifact createRunfilesMiddleman(ActionConstructionContext context, } /** - * Creates a runfiles action for all of the specified files, and returns the - * output artifact (the artifact for the MANIFEST file). + * Creates a runfiles action for all of the specified files, and returns the output artifact (the + * artifact for the MANIFEST file). * - *
The "runfiles" action creates a symlink farm that links all the runfiles - * (which may come from different places, e.g. different package paths, - * generated files, etc.) into a single tree, so that programs can access them - * using the workspace-relative name. + *
The "runfiles" action creates a symlink farm that links all the runfiles (which may come
+ * from different places, e.g. different package paths, generated files, etc.) into a single tree,
+ * so that programs can access them using the workspace-relative name.
*/
- private Artifact createRunfilesAction(ActionConstructionContext context, Runfiles runfiles,
- Artifact artifactsMiddleman) {
+ private Artifact createRunfilesAction(ActionConstructionContext context, Runfiles runfiles) {
// Compute the names of the runfiles directory and its MANIFEST file.
Artifact inputManifest = getRunfilesInputManifest();
context.getAnalysisEnvironment().registerAction(
@@ -316,7 +314,6 @@ private Artifact createRunfilesAction(ActionConstructionContext context, Runfile
new SymlinkTreeAction(
context.getActionOwner(),
inputManifest,
- artifactsMiddleman,
outputManifest,
/*filesetTree=*/ false,
config.getLocalShellEnvironment(),
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/actions/SymlinkTreeAction.java b/src/main/java/com/google/devtools/build/lib/analysis/actions/SymlinkTreeAction.java
index d0600db0a86d49..3b2750df5a10a0 100644
--- a/src/main/java/com/google/devtools/build/lib/analysis/actions/SymlinkTreeAction.java
+++ b/src/main/java/com/google/devtools/build/lib/analysis/actions/SymlinkTreeAction.java
@@ -25,8 +25,6 @@
import com.google.devtools.build.lib.actions.Artifact;
import com.google.devtools.build.lib.concurrent.ThreadSafety.Immutable;
import com.google.devtools.build.lib.util.Fingerprint;
-import com.google.devtools.build.lib.vfs.Path;
-import javax.annotation.Nullable;
/**
* Action responsible for the symlink tree creation.
@@ -47,9 +45,6 @@ public final class SymlinkTreeAction extends AbstractAction {
* Creates SymlinkTreeAction instance.
* @param owner action owner
* @param inputManifest the input runfiles manifest
- * @param artifactMiddleman the middleman artifact representing all the files the symlinks
- * point to (on Windows we need to know if the target of a "symlink" is
- * a directory or a file so we need to build it before)
* @param outputManifest the generated symlink tree manifest
* (must have "MANIFEST" base name). Symlink tree root
* will be set to the artifact's parent directory.
@@ -59,12 +54,11 @@ public final class SymlinkTreeAction extends AbstractAction {
public SymlinkTreeAction(
ActionOwner owner,
Artifact inputManifest,
- @Nullable Artifact artifactMiddleman,
Artifact outputManifest,
boolean filesetTree,
ImmutableMap