cool-easter-32542
09/22/2023, 6:51 PM.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:
<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:
• #261
• pantsbuild/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/pantscool-easter-32542
09/22/2023, 6:51 PM