Does anyone know what this error means? ```╰─ pant...
# general
l
Does anyone know what this error means?
Copy code
╰─ pants lint mtom                                                                                                                                     
17:18:07.38 [ERROR] 1 Exception encountered:

  Exception: Unmatched glob from the option `[black].lockfile`: ".build-support/black.lockfile"
The code can be found in my pants playground located here: https://github.com/xuru/monolith-to-monorepo/tree/pants_baseline
e
So the root
.build-support/
dir does not exist. You claim it exists right here: https://github.com/xuru/monolith-to-monorepo/blob/pants_baseline/pants.toml#L35 Did you run
pants generate-lockfiles
?
l
I did, and it does exist, but is in the
.gitignore
file.
e
Well there you go.
Can't do that. Pants ignores things in .gitignore by default.
So you want to use lockfiles but not check them in?
That's a new one.
l
Ah, well, I guess I didn’t think that one through. I was thinking like it was a build artifact that I didn’t want checked in.
e
Just like poetry.lock
l
gotcha
makes sense
e
Hopefully you migrate to just one or the other eventually. It will probaly be no end of trouble to have 2 locks.
l
That is the goal. And why I made an example repo to play with and ask questions. I will need to move us to a monorepo one step at a time
e
Gotcha. Thanks for the example repo. Those help a ton when helping people through these transitions.
👍 1
l
stupid question…. if not poetry, than just requirements files? or directly in the BUILD file?
e
Either one that suits you. Most use requirements files for overall less text and potential interoperability.
👍 1
l
As it turns out, it didn’t like that the directory started with a “.”
e
Huh. Sounds buggy to me. There is no good reason for that I'm aware of.
l
Thanks again for the help! I’ll play with it again tomorrow. Night