<#3511 Move `.pids` under `.pants.d`> Issue create...
# github-notifications
c
#3511 Move `.pids` under `.pants.d` Issue created by backuitist Pants uses 4 different directories at the root of the project:
.cache
,
dist
,
.pants.d
and
.pids
. This feels untidy and increases the likelihood of conflicts with other tools/existing code. It seems that a convention for work directories is
.NAME
, such as
.git
or
.idea
, so I would suggest the following re-organisation:
Copy code
<project-home>
   + .git
   + .pants
      + dist
      + pids
      + cache
      + ... (everything that's currently in .pants.d)
I understand this might break things but it can be taken as an opportunity to fix hardcoded paths such as: • #261pantsbuild/intellij-pants-plugin#167 Note : after discussing this on slack a couple of reasons came up as to why things are organised as they are now: 1.
dist
lives outside of
.pants.d
so that it doesn't get wiped out by
clean-all
IMO that's a rather surprising behavior as
clean-all
is described as a mean to clean your workspace. It's also unexpected for people coming from other build tools. 2.
.pants.d
is a black box
I guess that's just a matter of defining what
.pants.d
is. Very much like
target
with Maven or SBT,
.pants
can be defined as the root to everything that is produced by pants. And if things within
.pants
must be flagged as internal or unstable, then it's always possible to move then under something like
.pants/internal
(although I wouldn't do it). pantsbuild/pants