Hey! Having a weird issue when running `./pants fm...
# general
f
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
That sounds like a bug, since that's not a very helpful diagnostic at all
b
Feel free to file an issue. Include as much info needed to reproduce. Should be an easy fix
e
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
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