Hey, I'm trying to setup Pants (w/ pnpm) in a Pyth...
# general
s
Hey, I'm trying to setup Pants (w/ pnpm) in a Python + NodeJS workspace but i'm getting this error when generating lockfiles:
Copy code
$ pants generate-lockfiles --resolve=nodejs-default
10:53:49.91 [ERROR] 1 Exception encountered:

Engine traceback:
  in `generate-lockfiles` goal

IntrinsicError: path_metadata_request error: path for PathNamespace.SYSTEM must an absolute path. Instead, got ``
Any ideas on where I should look to start debugging this?
Solved it, my local PATH env var had an "empty" path in it, i.e.:
Copy code
export PATH=/path/one:/path/two::/path/three
w
Good solve, but we should have better error messaging for that too
Like "please check XYZ" - I don't know if we want to echo PATH - I remember that being a thing, and I think we hid it and stuff
s
now the true challenge, wading through my dotfiles to figure out how where that's coming from 😄
w
I feel that pain in my soul
😄 1
h
I think we can just silently ignore empty PATH entries. Our contract there is “we will do our best to find a binary on various candidate paths” not “we will check every single entry on your PATH”…
Good find @some-insurance-58590
w
do we error out with a malformed path?