Automated rollback of commit
*** Reason for rollback ***
Python binaries used in genrule.tools are now forced to run Python 3 (--host_force_python=PY3) so this is no longer needed.
*** Original change description ***
Provide additional guidance about the py2 problem with genrule.
@@ -592,8 +592,7 @@ public final class PyCommon {
+ ": "
+ "This target is being built for Python %s but (transitively) includes Python %s-only "
+ "sources. You can get diagnostic information about which dependencies introduce this "
- + "version requirement by running the `find_requirements` aspect. If this is used in a "
- + "genrule, you may need to migrate from tools to exec_tools. For more info see "
+ + "version requirement by running the `find_requirements` aspect. For more info see "
+ "the documentation for the `srcs_version` attribute: "
+ semantics.getSrcsVersionDocURL();
