Automated rollback of commit 771cb7a026f2c9034fb016966dfd0e154c48ff2e. *** Reason for rollback *** Breaks bazel-skylib See https://github.com/bazelbuild/bazel/issues/8227 for details. *** Original change description *** Make target pattern parsing repository-renaming aware. Platform and toolchain resolution rely on the target pattern parsing code to turn target pattern strings into Labels. Since most of the target pattern parsing codepaths turn target patterns that originated from the command line, they don't need to pass along the repository renaming map. But instances that affect platform and toolchain target patterns, we need to pass the map. This allows us to turn on the --incompatible_remap_main_repo flag on by default in Bazel. Closes #7902. Fixes #7755, #7773, #7654. RELNOTES: None PiperOrigin-RevId: 246546091
diff --git a/src/main/java/com/google/devtools/build/skydoc/fakebuildapi/FakeSkylarkRuleFunctionsApi.java b/src/main/java/com/google/devtools/build/skydoc/fakebuildapi/FakeSkylarkRuleFunctionsApi.java index f3a6a38..9201d4d 100644 --- a/src/main/java/com/google/devtools/build/skydoc/fakebuildapi/FakeSkylarkRuleFunctionsApi.java +++ b/src/main/java/com/google/devtools/build/skydoc/fakebuildapi/FakeSkylarkRuleFunctionsApi.java
@@ -170,20 +170,10 @@ } @Override - public SkylarkAspectApi aspect( - BaseFunction implementation, - SkylarkList<?> attributeAspects, - Object attrs, - SkylarkList<?> requiredAspectProvidersArg, - SkylarkList<?> providesArg, - SkylarkList<?> fragments, - SkylarkList<?> hostFragments, - SkylarkList<?> toolchains, - String doc, - FuncallExpression ast, - Environment funcallEnv, - StarlarkContext context) - throws EvalException { + public SkylarkAspectApi aspect(BaseFunction implementation, SkylarkList<?> attributeAspects, + Object attrs, SkylarkList<?> requiredAspectProvidersArg, SkylarkList<?> providesArg, + SkylarkList<?> fragments, SkylarkList<?> hostFragments, SkylarkList<?> toolchains, String doc, + FuncallExpression ast, Environment funcallEnv) throws EvalException { return new FakeSkylarkAspect(); }