rapid-bird-79300
04/07/2022, 9:33 PMupdate-build-files
goal shows errors to add name
to poetry_requirements
but that's not a supported option. Since the pyproject.toml
lives at the root of the project I believe this error is related:
njgrisafi@Nicks-MacBook-Pro ~/workspace/pants-example (build-file-defaults)$ ./pants lint ::
14:28:42.68 [INFO] Initializing scheduler...
14:28:42.88 [INFO] Scheduler initialized.
14:28:42.93 [ERROR] 1 Exception encountered:
MappingError: Failed to parse ./BUILD:
Targets in root-level BUILD files must be named explicitly.
example branch: https://github.com/njgrisafi/pants-example/tree/build-file-defaultsnjgrisafi@Nicks-MacBook-Pro ~/workspace/pants-example (build-file-defaults)$ ./pants update-build-files --fix-python-macros
14:22:38.03 [ERROR] You must manually add the `name=` field to the following targets. This is not done automatically by the `update-build-files` goal.
* `poetry_requirements` in BUILD: add `name="poetry"
14:22:38.03 [ERROR] You must manually add the `name=` field to the following targets. This is not done automatically by the `update-build-files` goal.
* `poetry_requirements` in BUILD: add `name="poetry"
14:22:38.03 [ERROR] You must manually add the `name=` field to the following targets. This is not done automatically by the `update-build-files` goal.
* `poetry_requirements` in BUILD: add `name="poetry"
14:22:38.03 [ERROR] You must manually add the `name=` field to the following targets. This is not done automatically by the `update-build-files` goal.
* `poetry_requirements` in BUILD: add `name="poetry"
14:22:38.03 [ERROR] You must manually add the `name=` field to the following targets. This is not done automatically by the `update-build-files` goal.
* `poetry_requirements` in BUILD: add `name="poetry"
14:22:38.03 [ERROR] You must manually add the `name=` field to the following targets. This is not done automatically by the `update-build-files` goal.
* `poetry_requirements` in BUILD: add `name="poetry"
14:22:38.03 [ERROR] You must manually add the `name=` field to the following targets. This is not done automatically by the `update-build-files` goal.
* `poetry_requirements` in BUILD: add `name="poetry"
14:22:38.03 [ERROR] You must manually add the `name=` field to the following targets. This is not done automatically by the `update-build-files` goal.
* `poetry_requirements` in BUILD: add `name="poetry"
happy-kitchen-89482
04/07/2022, 9:34 PMhundreds-father-404
04/07/2022, 9:35 PMrapid-bird-79300
04/07/2022, 9:36 PMpoetry_requirements
it fails to parse the BUILD file:
njgrisafi@Nicks-MacBook-Pro ~/workspace/pants-example (build-file-defaults)$ ./pants update-build-files --fix-python-macros
14:20:38.53 [INFO] Initializing scheduler...
14:20:38.70 [INFO] Scheduler initialized.
14:20:44.74 [ERROR] 1 Exception encountered:
MappingError: Failed to parse ./BUILD:
__call__() got an unexpected keyword argument 'name'
hundreds-father-404
04/07/2022, 9:36 PMrapid-bird-79300
04/07/2022, 9:36 PMuse_deprecated_python_macros
?hundreds-father-404
04/07/2022, 9:37 PMrapid-bird-79300
04/07/2022, 9:40 PMhundreds-father-404
04/07/2022, 9:40 PM