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

lemon-helicopter-73409

03/07/2023, 11:20 PM
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

enough-analyst-54434

03/07/2023, 11:26 PM
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

lemon-helicopter-73409

03/07/2023, 11:27 PM
I did, and it does exist, but is in the
.gitignore
file.
e

enough-analyst-54434

03/07/2023, 11:27 PM
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

lemon-helicopter-73409

03/07/2023, 11:29 PM
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

enough-analyst-54434

03/07/2023, 11:30 PM
Just like poetry.lock
l

lemon-helicopter-73409

03/07/2023, 11:30 PM
gotcha
makes sense
e

enough-analyst-54434

03/07/2023, 11:30 PM
Hopefully you migrate to just one or the other eventually. It will probaly be no end of trouble to have 2 locks.
l

lemon-helicopter-73409

03/07/2023, 11:32 PM
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

enough-analyst-54434

03/07/2023, 11:32 PM
Gotcha. Thanks for the example repo. Those help a ton when helping people through these transitions.
👍 1
l

lemon-helicopter-73409

03/07/2023, 11:33 PM
stupid question…. if not poetry, than just requirements files? or directly in the BUILD file?
e

enough-analyst-54434

03/07/2023, 11:36 PM
Either one that suits you. Most use requirements files for overall less text and potential interoperability.
👍 1
l

lemon-helicopter-73409

03/07/2023, 11:51 PM
As it turns out, it didn’t like that the directory started with a “.”
e

enough-analyst-54434

03/07/2023, 11:52 PM
Huh. Sounds buggy to me. There is no good reason for that I'm aware of.
l

lemon-helicopter-73409

03/07/2023, 11:57 PM
Thanks again for the help! I’ll play with it again tomorrow. Night