Hi all, with `pants` being installed in the root o...
# general
g
Hi all, with
pants
being installed in the root of the repo, I find it a little more effort to go to the repo root before running it (or having to count the number
../
I need to do) Is there some way to be able to call pants from any subdirectory of the repo?
1
l
You could use direnv to augment your shell when you enter the repo. You would do this with a
.envrc
containing
PATH_add $(pwd)
(doc). That would add the
pants
script to your
$PATH
when you are in your repo.
g
Fantastic! Thank you 😄
🙇 1
c
beware though that any specs passed as arguments to pants would still likely need to be relative to the project root rather than your cwd..
g
good point - thanks 🙂 I'll make a note of that 🙂
r
👀 1
g
Thanks -
p
looks great - will try that out too 🙂