Is there a requirement that the `pants` script be ...
# general
b
Is there a requirement that the
pants
script be located in the root of a repository, or is that just a convention? Would anything break horribly if we were to move it into, say, a
bin
directory in the repo?
h
I'm not sure if it would work - I don't think it will, but could try and might work with a tweak or two to the Bash script But add a file called
BUILD_ROOT
if you do that, Pants needs to have a sentinel, which can either be that or be
./pants
b
Gotcha, thanks. I was hesitant to do this, if only for the fact that it appears to be the generally-accepted practice in the community, but an engineer on our team asked.
h
Relates to https://pantsbuild.slack.com/archives/C0D7TNJHL/p1615417124091300 I think Generally, it's a feature request to be able to run
./pants
from any subdirectory, which would be awesome but I think requires that type of further tightening up of things
☝️ 1
h
I'd be really curious to know if you get this to work!