From fa7e34979b1a10794321b1233e8d6f44a62431fa Mon Sep 17 00:00:00 2001 From: Googler Date: Fri, 6 Jan 2017 21:20:27 +0000 Subject: Exclude transitive proto deps of deploy_env binaries from the generated extension registry for the enclosing binary. -- PiperOrigin-RevId: 143807030 MOS_MIGRATED_REVID=143807030 --- .../lib/rules/java/proto/GeneratedExtensionRegistryProvider.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/com/google/devtools/build/lib/rules/java/proto/GeneratedExtensionRegistryProvider.java b/src/main/java/com/google/devtools/build/lib/rules/java/proto/GeneratedExtensionRegistryProvider.java index 1c1e04e6a9..9d7fac6ace 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/java/proto/GeneratedExtensionRegistryProvider.java +++ b/src/main/java/com/google/devtools/build/lib/rules/java/proto/GeneratedExtensionRegistryProvider.java @@ -18,6 +18,7 @@ import com.google.auto.value.AutoValue; import com.google.common.base.Verify; import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.analysis.TransitiveInfoProvider; +import com.google.devtools.build.lib.cmdline.Label; import com.google.devtools.build.lib.collect.nestedset.NestedSet; import com.google.devtools.build.lib.concurrent.ThreadSafety.Immutable; @@ -31,6 +32,9 @@ import com.google.devtools.build.lib.concurrent.ThreadSafety.Immutable; @Immutable public abstract class GeneratedExtensionRegistryProvider implements TransitiveInfoProvider { + /** @return the rule label for which this registry was built. */ + public abstract Label getGeneratingRuleLabel(); + /** @return if this registry was generated for lite or full runtime. */ public abstract boolean isLite(); @@ -50,6 +54,10 @@ public abstract class GeneratedExtensionRegistryProvider implements TransitiveIn /** A builder for {@link GeneratedExtensionRegistryProvider}. */ @AutoValue.Builder public abstract static class Builder { + + /** Sets the rule label for which this registry was built. */ + public abstract Builder setGeneratingRuleLabel(Label label); + /** Indicates this registry was built for lite runtime if true, full otherwise. */ public abstract Builder setLite(boolean lite); -- cgit v1.2.3