-
-
Notifications
You must be signed in to change notification settings - Fork 640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Designate pants.ini
as legacy, but still supported, in docs
#9194
Designate pants.ini
as legacy, but still supported, in docs
#9194
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Added so many of you all because this PR is mostly a discussion and decision for the project; not really code review.)
Have we discussed this change with |
I was talking about this with @olafurpg the other day, and we reasoned that pants.ini is hardcoded in so many systems at Twitter that it would be extremely hard for us to migrate Twitter off of it. While I think |
Not yet, because I wanted to get all of your thoughts first. If there were any doubts on whether we should do this (as it turns out there are) and we couldn't reach a decision, reaching out to
Good to know! I propose, then, that we keep support for Rather, the expense of supporting both formats is in documentation. It's difficult/clunky for us to refer to both So, the proposal is that we keep support for INI, but mark -- If we agree to this plan, the next steps would be:
|
I like this change a lot more, thanks a lot for reaching out @Eric-Arellano |
# Delete this line to force a full CI run for documentation-only changes. [ci skip] # Documentation-only change.
pants.ini
in favor of pants.toml
pants.ini
as legacy (but still supported) in docs
pants.ini
as legacy (but still supported) in docspants.ini
as legacy, but still supported, in docs
As decided above, this PR is now updated to no longer deprecate INI, but to only mark it as legacy in our docs. This is ready for review :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
I was talking about this with @olafurpg the other day, and we reasoned that pants.ini is hardcoded in so many systems at Twitter that it would be extremely hard for us to migrate Twitter off of it.
FWIW, parsingpants.ini
has never been a suggested approaching for external integrations..../pants options
supports rendering options as JSON, and IDE integrations should prefer that. cc @wisechengyi
Having said that, I agree that having breathing room to make that migration would be a very good idea, so thank you for bumping this out a bit.
# Delete this line to force a full CI run for documentation-only changes. [ci skip] # Documentation-only change.
We decided to not (yet) deprecate
pants.ini
because it causes too much friction for users at the same time that they're dealing with deprecatingglobs()
and--test-fast
. Further, the code to supportpants.ini
is not very painful to support as it is well-isolated (although, it would allow us to simplify things if we could always assume TOML).But, we don't want to have to refer to both TOML and INI in our docs and user messages. So, we strike a compromise where we always assume TOML in our docs, but allow our code to work with both.
To reflect this decision, we update our docs to have a section explaining how INI works and pointing to a script to migrate to TOML. That is the only section in our docs that we should ever mention INI.