-
-
Notifications
You must be signed in to change notification settings - Fork 652
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
Add mechanism to deprecate target types and fields #10966
Add mechanism to deprecate target types and fields #10966
Conversation
# Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
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.
The motivation is #10963. Raúl shared that it would be helpful with the migration if we add back removed fields like coverage
, even if they no-op.
# Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
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.
Nice!
# Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
Internal-only changes left off: * Add mechanism to deprecate target types and fields (Cherry-pick of #10966) (#10969) `PR #10969 <https://github.com/pantsbuild/pants/pull/10969>`_ * Use `package` to build Pants's wheels, rather than `setup-py` (Cherry-pick of #10947) (#10952) `PR #10952 <https://github.com/pantsbuild/pants/pull/10952>`_
Internal-only changes left off: * Add mechanism to deprecate target types and fields (Cherry-pick of #10966) (#10969) `PR #10969 <https://github.com/pantsbuild/pants/pull/10969>`_ * Use `package` to build Pants's wheels, rather than `setup-py` (Cherry-pick of #10947) (#10952) `PR #10952 <https://github.com/pantsbuild/pants/pull/10952>`_
We leave off deprecated target types and fields from
./pants target-types
for now. In a followup, we may want to do something like./pants help
where it shows the values, but in red.We only log on the original targets in BUILD files, rather than on generated subtargets. This avoids unnecessary noise, where one target owning 7 source files would have had resulted in 8 different warnings.
[ci skip-rust]
[ci skip-build-wheels]