Skip to content
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

Deprecate the old export semantics. #17465

Merged
merged 1 commit into from Nov 4, 2022

Conversation

benjyw
Copy link
Sponsor Contributor

@benjyw benjyw commented Nov 4, 2022

Uses a long deprecation cycle, since this affects CLI invocations that people may have become used to.

warn_or_error(
"2.23.0.dev0",
"exporting resolves without using the --resolve option",
textwrap.dedent(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think softwrap is the universal thing to use now.

Copy link
Sponsor Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason that didn't look right when rendered. I'll fiddle with it in a future change, doesn't seem worth a CI round.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we use softwrap because it adjusts to the users' terminal size dynamically, e.g. huge 500 character columns. textwrap is instead based on the length of the source code.

@benjyw benjyw merged commit 3d0395d into pantsbuild:main Nov 4, 2022
@benjyw benjyw deleted the deprecate_old_export_semantics branch November 4, 2022 15:04
benjyw added a commit to benjyw/pants that referenced this pull request Nov 4, 2022
Employs a long deprecation cycle, since this affects CLI invocations that people may have become used to.
benjyw added a commit that referenced this pull request Nov 4, 2022
Employs a long deprecation cycle, since this affects CLI invocations that people may have become used to.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants