high-yak-85899
05/03/2022, 5:55 PM2.10.1rc0
to 2.11.0
and I'm seeing some funny behavior. When I make the bump and run something simple like ./pants help test
, I get the warning logs about deprecated macros and how to fix (I already have use_deprecated_python_macros = false
from the previous bump from 2.9
to 2.10
). So, I delete that option and run the update-build-files --fix-python-macros
and I get an error saying use_deprecated_python_macros
is already set to false (first issue with the help logs since it says to just delete the option). So, I set to true
and I get
11:53:37.02 [ERROR] 1 Exception encountered:
MappingError: Failed to parse ./BUILD.pants:
__call__() got an unexpected keyword argument 'name'
I take it this is for python_requirements()
so I delete the name field in there and then run it again and I get spammed with
* `python_requirements` in BUILD.pants: add `name="reqs"
11:54:34.40 [ERROR] You must manually add the `name=` field to the following targets. This is not done automatically by the `update-build-files` goal
So I'm in some kind of circular issue here and not sure how to resolve.hundreds-father-404
05/03/2022, 6:00 PMuse_deprecated_python_macros = false
, all you need to do is delete that option from pants.toml
. No other changes should be necessary. The only change in 2.11 is that = false
is now the defaulthigh-yak-85899
05/03/2022, 6:02 PM