Open
Description
To create a lockfile for the JVM, you need to run ./pants generate-lockfiles
. But if you haven't done that, and have redefined the lockfile location, you will get a unmatched globs warning instead:
10:14:46.00 [ERROR] 1 Exception encountered:
Exception: Unmatched glob from The resolve `jvm-default` from `[jvm].resolves`: "lib/3rdparty/jvm/default.lock"
Do the file(s) exist? If so, check if the file(s) are in your `.gitignore` or the global `pants_ignore` option, which may result in Pants not being able to see the file(s) even though they exist on disk. Refer to https://www.pantsbuild.org/v2.14/docs/troubleshooting#pants-cannot-find-a-file-in-your-project.
Rather than an unmatched glob, we should instead detect the missing file at a higher level, and explain how to create the lockfile. It looks like we already attempt to do that (in some cases):
pants/src/python/pants/jvm/resolve/coursier_fetch.py
Lines 761 to 767 in c1514b7
... but apparently not in others.
Activity