I'm attempting to upgrade from 2.8 to 2.9 and I'm ...
# general
i
I'm attempting to upgrade from 2.8 to 2.9 and I'm getting the following warning which is related to an internal plugin:
Copy code
10:04:29.00 [WARN] DEPRECATED: the `pants_requirement` macro will be removed in version 2.10.0.dev0.

Use the target `pants_requirements` instead. First, add `pants.backend.plugin_development` to `[GLOBAL].backend_packages` in `pants.toml`. Then, delete all `pants_requirement` calls and replace them with a single `pants_requirements(name='pants')`.

By default, `pants_requirements` will generate a `python_requirement` target for both `pantsbuild.pants` and `pantsbuild.pants.testutil`.
More in 🧵
If I change my pants-plugins/BUILD file to reference
pants_requirements(name='pants')
as suggested I get the following error:
Copy code
10:08:04.56 [ERROR] 1 Exception encountered:

  MappingError: Failed to parse ./pants-plugins/BUILD.v2:
Name 'pants_requirements' is not defined.

Did you mean pants_requirement?

If you expect to see more symbols activated in the below list, refer to <https://www.pantsbuild.org/v2.9/docs/enabling-backends> for
all available backends to activate.
w
did you do this part first?
First, add
pants.backend.plugin_development
to
[GLOBAL].backend_packages
in
pants.toml
.
2
I found the solution here ☝️