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

Add mechanism to deprecate target types and fields #10966

Merged
merged 3 commits into from Oct 15, 2020

Conversation

Eric-Arellano
Copy link
Contributor

@Eric-Arellano Eric-Arellano commented Oct 15, 2020

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]

# 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]
Copy link
Contributor Author

@Eric-Arellano Eric-Arellano left a 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]
Copy link
Contributor

@tdyas tdyas left a 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]
@coveralls
Copy link

coveralls commented Oct 15, 2020

Coverage Status

Coverage remained the same at 0.0% when pulling dc288f7 on Eric-Arellano:deprecated-fields into 962d283 on pantsbuild:master.

@Eric-Arellano Eric-Arellano merged commit b32f1d1 into pantsbuild:master Oct 15, 2020
@Eric-Arellano Eric-Arellano deleted the deprecated-fields branch October 15, 2020 20:13
Eric-Arellano added a commit that referenced this pull request Oct 15, 2020
@Eric-Arellano Eric-Arellano mentioned this pull request Oct 15, 2020
gshuflin pushed a commit that referenced this pull request Oct 16, 2020
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>`_
Eric-Arellano added a commit that referenced this pull request Oct 16, 2020
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>`_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants