https://pantsbuild.org/ logo
#general
Title
# general
e

echoing-farmer-15630

03/30/2022, 1:37 PM
Ah! Mostly. I'd seen reference to the hash # declarator but hadn't understood what it was. Let me try that
h

hundreds-father-404

03/30/2022, 1:40 PM
did you see the deprecation instructions with
update-build-files --fix-python-macros
? It will automate fixing most this for you, and will log what you need to manually fix
e

echoing-farmer-15630

03/30/2022, 1:51 PM
Well, I did see that (a while ago), and I ran it, and things broke so I reverted then and am trying to step through it now manually. Sorry for not reporting the issues I was having--I should have taken better notes.
Ah, it was this I think when I ran `--fix-python-macros`:
Copy code
MappingError: Failed to parse ./BUILD:
__call__() got an unexpected keyword argument 'name'
(three
file
targets with
name
, one
python_requirements
with
name
maybe never mind; pingponging between versions is confusing my brain
h

hundreds-father-404

03/30/2022, 6:08 PM
the deprecation is tough because being in a mixed state does not work. I recommend going back to the old macros, then following the instructions exactly and making sure it works with
./pants dependencies ::
. Land as distinct commit
lmk if you need help. It's unfortunate the deprecation had to happen - but super important to fix one of our biggest broken windows
3 Views