Pants to respect XDB spec for global storage on unix systems.

Review Request #1817 - Created Feb. 23, 2015 and submitted

Mateo Rodriguez
benjyw, dturner-tw, jsirois, patricklaw, zundel

This moves pants_bootstrapdir (volatile storage) to a
default of ~/.cache/pants unless the user has set
XDG_CACHE_HOME. This also adds a new global config directory
for non-volatile storage, such as user-edited config files.
This will default to ~/.config/pants, unless the user has

Pants uses these locations for both Linux and OSX installs.

XDG spec:

I did not rename the pants_bootstrapdir, since that is
probably in use in various non-OSS tasks and pants.ini.

I tried a couple other ways of doing this. I removed that code
but left in some new tests that went with it. LMK if you'd like
them pulled into a separate CR. I also added lots of people
to get eyeballs from the separate shops.

Travis passed:


  • 0
  • 2
  • 1
  • 3
Description From Last Updated
Mateo Rodriguez
David Turner
Eric Ayers
John Sirois
John Sirois
Mateo Rodriguez
John Sirois
Patrick Lawson
David Turner
Mateo Rodriguez
Mateo Rodriguez
Review request changed

Status: Closed (submitted)