Remove escape hatch for BEP Artifact path prefixes: No issues have been reported. RELNOTES: None PiperOrigin-RevId: 252884684
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/TargetCompleteEvent.java b/src/main/java/com/google/devtools/build/lib/analysis/TargetCompleteEvent.java index 4c83af5..077cd2e 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/TargetCompleteEvent.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/TargetCompleteEvent.java
@@ -119,11 +119,6 @@ private final ExecutableTargetData executableTargetData; private final boolean bepReportOnlyImportantArtifacts; - private static final String DISABLE_PREFIX_NAME = - "com.google.devtools.build.lib.analysis.TargetCompleteEvent.disable_path_prefix"; - private static final boolean INCLUDE_PATH_PREFIX = - !"1".equals(System.getProperty(DISABLE_PREFIX_NAME)); - private TargetCompleteEvent( ConfiguredTargetAndData targetAndData, NestedSet<Cause> rootCauses, @@ -324,7 +319,7 @@ String name, Artifact artifact) { File.Builder builder = File.newBuilder().setName(name == null ? artifact.getRootRelativePathString() : name); - if (INCLUDE_PATH_PREFIX && artifact.getRoot().getComponents() != null) { + if (artifact.getRoot().getComponents() != null) { builder.addAllPathPrefix( Iterables.transform(artifact.getRoot().getComponents(), PathFragment::getPathString)); }