https://pantsbuild.org/ logo
#announce
Title
# announce
w

witty-crayon-22786

05/28/2020, 5:56 PM
it looks like the ini/toml deprecation is triggering on pantsbuild/pants, which is peculiar
…oh. because i have a
~/.pants.rc
most likely.
it is in toml format though.
h

hundreds-father-404

05/28/2020, 6:06 PM
the TOML vs. INI code right now only parses with TOML if the file ends in
.toml
, per the TOML spec
otherwise it uses INI
Could you rename it
~/.pants.toml
or
~/.pants.rc.toml
?
w

witty-crayon-22786

05/28/2020, 6:07 PM
it successfully parses this file… *shrug
e

enough-analyst-54434

05/28/2020, 6:07 PM
~/<foo>.rc is a unix standard pants uses
We should change the standard or add an afforance for it
h

hundreds-father-404

05/28/2020, 6:08 PM
w

witty-crayon-22786

05/28/2020, 6:08 PM
Copy code
--pantsrc-files="[<path>, <path>, ...]"
      default: "['/etc/pantsrc', '~/.pants.rc']"
      Override config with values from these files. Later files override earlier ones.
so i guess that some subset of toml parses successfully as ini…?
h

hundreds-father-404

05/28/2020, 6:12 PM
Yes, that is correct
w

witty-crayon-22786

05/28/2020, 6:12 PM
mm
h

hundreds-father-404

05/28/2020, 6:12 PM
TOML is inspired by INI. It’s similar in many ways, but stricter
w

witty-crayon-22786

05/28/2020, 6:35 PM
i will help myself out here
.pants.rc.toml
or
.pants.toml.rc
?
h

hundreds-father-404

05/28/2020, 6:56 PM
I think
.rc.toml
? John will have a better intuition for what is more kosher
w

witty-crayon-22786

05/28/2020, 7:03 PM
yea, fine with that. seems like it’s more a convention than an actual useful suffix.
e

enough-analyst-54434

05/28/2020, 8:39 PM
Well, just accepting the unix default and actually making an exception for them would be most kosher... but I generally have differing opinions on lots of this stuff it seems. Fine with consensus outside me.
w

witty-crayon-22786

05/29/2020, 7:29 PM
e

enough-analyst-54434

05/29/2020, 7:50 PM
Thanks - that seems more in line with rc.