quaint-telephone-89068
02/24/2023, 3:48 AMpython-sources("x") accidentally is an error, but this error isn't specific about the location of the problem, which makes it hard to find.
cd "$(mktemp -d)"
echo 'python_sources("x")' > BUILD
cat > pants.toml <<EOF
[GLOBAL]
pants_version = "2.14.0"
backend_packages = ["pants.backend.python"]
[anonymous-telemetry]
enabled = false
EOF
pants dependencies ::
#> MappingError: Failed to parse ./BUILD:
#> __call__() takes 1 positional argument but 2 were given
It'd be great if the error at least pointed to the line, and would be even better if the raw Python-generated TypeError was translated into something meaningful for Pants users.
Pants version
2.14.0, 2.16.0.dev7
OS
macOS
Additional info
Add any other information about the problem here, such as attachments or links to gists, if relevant.
pantsbuild/pants