freezing-area-97131
04/14/2022, 1:23 AM2.11
from 1.30
. I got a lot of errors like this:
Name 'python_library' is not defined.
What should I change them to?wide-midnight-78598
04/14/2022, 1:29 AMpython_library
turned into python_sources
- but maybe it's safer to take a read through the upgrade tips, and even going so far back as the upgrade tips from 1.30 -> 2.0
https://www.pantsbuild.org/v2.0/docs/how-to-upgrade-pants-2-0freezing-area-97131
04/14/2022, 1:44 AMwide-midnight-78598
04/14/2022, 2:19 AMfreezing-area-97131
04/14/2022, 2:44 AMMappingError: Failed to parse xxx/xxx/BUILD:
__call__() got an unexpected keyword argument 'name'
Is this about python_requirement_library
?hundreds-father-404
04/14/2022, 2:54 AMname=
but it shouldnt if youre on 1.30freezing-area-97131
04/14/2022, 2:59 AMname
?
but when I ran ./pants filedeps :: > /dev/null
on 1.30
, it didn’t complain anything.hundreds-father-404
04/14/2022, 4:26 AMname
only works w/ 2/10+. It sounds like you partially were trying to use 2.11. I recommend going back to your stable 1.30 branch, and starting the 2.0 upgrade from there without the changes from 2.11happy-kitchen-89482
04/14/2022, 6:34 AMfreezing-area-97131
04/14/2022, 6:36 AMname
issue happen when I upgrade from 2.0 to 2.1hundreds-father-404
04/14/2022, 1:46 PM@hundreds-father-404 It seems that the name issue happen when I upgrade from 2.0 to 2.1Hm, so are you able to get 2.0 working well? That would be probably good to land as a PR so that you have a baseline
MappingError: Failed to parse xxx/xxx/BUILD:
__call__() got an unexpected keyword argument 'name'
If you are able to share the build file, it might be easier to helpfreezing-area-97131
04/14/2022, 2:09 PMhappy-kitchen-89482
04/14/2022, 2:24 PMdependencies=
now..../pants tailor
generate BUILD files for youdependencies
from your BUILD files