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

famous-xylophone-36532

04/28/2023, 9:10 AM
Hey! Having a weird issue when running
./pants fmt
:
Copy code
AssertionError: Expected ('src/cicd/mutate.py',) to match ('src/cicd/./mutate.py',)
Solved by removing the leading dot in the
python_source
declaration. Is this intended behavior or bug?
b

broad-processor-92400

04/28/2023, 11:25 AM
That sounds like a bug, since that's not a very helpful diagnostic at all
b

bitter-ability-32190

04/28/2023, 11:30 AM
Feel free to file an issue. Include as much info needed to reproduce. Should be an easy fix
e

enough-analyst-54434

04/28/2023, 1:13 PM
Maybe not a helpful diagnostic but it does pinpoint the line of code uniquely: https://github.com/search?q=repo%3Apantsbuild%2Fpants+%22%7D+to+match+%7B%22&type=code
b

bitter-ability-32190

04/28/2023, 1:14 PM
Oh yeah. I had the exact code in mind as soon as I saw the assertion. It's a useful check for verifying assumptions from plugins, but we should probably use
resolve