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

Get rid of --plugins2/--backend-packages2. #10231

Merged
merged 10 commits into from Jul 2, 2020

Conversation

benjyw
Copy link
Sponsor Contributor

@benjyw benjyw commented Jul 1, 2020

Instead reuse --plugins/--backend-packages, as there is
now no v1 to get in the way.

[ci skip-rust-tests]

Instead use --plugins/--backend-packages, as there is
now no v1 to get in the way.

[ci skip-rust-tests]
@benjyw benjyw requested a review from Eric-Arellano July 1, 2020 21:52
Copy link
Contributor

@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.

Yay! My only concern is @cosmicexplorer 's concerns about still needing global_subsystem for CAFOs to work properly. See https://pantsbuild.slack.com/archives/C0D7TNJHL/p1593640144415700

If we can get it working via SubsystemRule, great. Otherwise, we might need to keep around global_subsystem and don't document it.

@cosmicexplorer
Copy link
Contributor

cosmicexplorer commented Jul 1, 2020

Note that I'm pretty sure the only blocker for removing twitter's dependency on CAOF is that v2 macros can't access option values. When that is possible we could also deprecate CAOF at some point, depending upon the needs of the community.

@benjyw
Copy link
Sponsor Contributor Author

benjyw commented Jul 1, 2020

PS I might add back the "2" versions of the options, with a deprecation notice, to ease the transition. But I first want to see that CI passes this way.

@benjyw
Copy link
Sponsor Contributor Author

benjyw commented Jul 1, 2020

OK, in that case we would still add that global_subystems support to v2 plugins, right?

@cosmicexplorer
Copy link
Contributor

Yes, for now, since v2 plugins may contain context-aware object factories.

@Eric-Arellano
Copy link
Contributor

Yes, for now, since v2 plugins may contain context-aware object factories.

Agreed. Like how we still will have BuildFileAliases around for some time in Pants 2.0, until we replace CAFO/object.

[ci skip-rust-tests]
# Rust tests will be skipped. Delete if not intended.
[ci skip-rust-tests]
# Rust tests will be skipped. Delete if not intended.
[ci skip-rust-tests]
# Rust tests will be skipped. Delete if not intended.
[ci skip-rust-tests]
# Rust tests will be skipped. Delete if not intended.
[ci skip-rust-tests]
# Rust tests will be skipped. Delete if not intended.
[ci skip-rust-tests]
@benjyw benjyw requested a review from Eric-Arellano July 2, 2020 22:46
@benjyw benjyw merged commit d2e04c4 into pantsbuild:master Jul 2, 2020
@benjyw benjyw deleted the plugins_options branch July 2, 2020 22:50
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