busy-pencil-12873
06/03/2025, 8:29 PMpants export
from the root of the projects directory. This is on Apple silicone, the file does exist, I have tried deleting it and regenerating. I can see all of the build targets when running pants list ::
. Seems to only be an issue with pants export
. Has anyone else had this issue with MacOS/ARM? Thanks in advance.
Happy to provide more information.gorgeous-winter-99296
06/03/2025, 9:08 PMpython_sources
, f.ex.) that doesn't catch any files -- for me these happen when I move files and leave a BUILD file but no Python files in a directory.busy-pencil-12873
06/03/2025, 9:26 PM15:23:28.33 [ERROR] 1 Exception encountered:
Engine traceback:
in `export` goal
IntrinsicError: Unmatched glob from the resolve `default`: "lockfiles/python.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/troubleshooting#pants-cannot-find-a-file-in-your-project>.
Not seeing any misplaced BUILD files.busy-pencil-12873
06/03/2025, 9:27 PMgorgeous-winter-99296
06/03/2025, 9:28 PMpants generate-lockfiles --resolve=default
busy-pencil-12873
06/03/2025, 9:29 PMpants generate-lockfiles
. Let me give that a try and get back to you. Thanks!gorgeous-winter-99296
06/03/2025, 9:34 PM.gitignore
or some other such list? If you try pkill pantsd
and then pants export
, does that change anything?busy-pencil-12873
06/03/2025, 9:37 PM.gitignore
, running pkill pantsd
followed by pants export
still results in the same Unmatched glob...
error. Let me know if there is any more information I could provide.gorgeous-winter-99296
06/03/2025, 9:42 PMpython.lock
), then moving the file there?busy-pencil-12873
06/03/2025, 9:46 PMgorgeous-winter-99296
06/03/2025, 9:48 PMlockfiles
dir. Is it spelled that way, including case? Any weird permissions/ownership? I'm not that familiar with Apple devices so not sure what could be causing it there if it's not in gitignore or pants-ignorebusy-pencil-12873
06/03/2025, 9:51 PM.toml
file case and all. Nothing strange with the permissions/ownership. Puzzling, but I do appreciate the temporary fix. I will probably have to play around with my local config to figure out whats going wrong. Thank you Tom!gorgeous-winter-99296
06/03/2025, 9:53 PMbusy-pencil-12873
06/03/2025, 9:54 PMbusy-pencil-12873
06/03/2025, 10:35 PMlockfiles
and modify pants.toml
to point to the new directory containing the lockfiles, it works without a hitch. If I rename the directory back to lockfiles
, pants is unable to find it. I am using Pants version 2.23.2.