I’m seeing the following failure on `main` : ```pa...
# development
f
I’m seeing the following failure on
main
:
Copy code
pants.engine.target.InvalidFieldException: Unrecognized field `skip_scalafmt=True` in target src/python/pants/backend/scala/dependency_inference:scala_parser. Valid fields for the target type `scala_sources`: ['compatible_resolves', 'dependencies', 'description', 'experimental_provides_types', 'sources', 'tags'].
scalafmt is an enabled backend. do I need to add it anywhere else? https://github.com/pantsbuild/pants/runs/4451392995?check_suite_focus=true#step:9:1249
w
in
init
src/python/pants/init/BUILD
… but it is?
where are you seeing the failure? that bit is relevant, because various release scripts enable/disable certain backends
1
h
f
see the link in my original post which has the line number on the CI job’s log linked
w
mm, sorry. assumed that because you were asking, that you didn’t already know where to look
f
my confusion is that the
skip_scalafmt
field is enabled since the scalafmt backend is enabled in
pants.toml
and why that wouldn’t take effect
there is no stack trace, but it’s probably the validation portion
but actually… @hundreds-father-404: this bit could probably be doing subtraction for the internal backend packages, right?
…but it also actually includes
--python-path=pants-plugins
. so i think that the whole comment is maybe stale
@fast-nail-55400: i’ll get a change out. sorry for the trouble.
f
no worries. just a part of the code base that I’m not that familiar with, and didn’t cause a failure in CI.
w