Skip to content

Upgrade Clap to 3.0.4 #289

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

Merged
merged 5 commits into from
Jan 13, 2022
Merged

Upgrade Clap to 3.0.4 #289

merged 5 commits into from
Jan 13, 2022

Conversation

nightkr
Copy link
Member

@nightkr nightkr commented Jan 5, 2022

Description

This requires some manual work (compared to #288), since Clap is a breaking update. In particular, structopt::StructOpt has now been upstreamed as clap::Parser.

Review Checklist

  • Code contains useful comments
  • (Integration-)Test cases added (or not applicable)
  • Documentation added (or not applicable)
  • Changelog updated (or not applicable)

@nightkr nightkr requested a review from a team January 5, 2022 08:41
@fhennig fhennig self-assigned this Jan 10, 2022
//! name = "Spark Operator",
//! author,
//! version,
//! about = "Stackable Operator for Foobar"
Copy link
Contributor

Choose a reason for hiding this comment

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

"Stackable Operator for Spark"

Copy link
Member Author

Choose a reason for hiding this comment

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

Switched the remaining names to "Foobar Operator".

//! name = "Spark Operator",
//! author,
//! version,
//! about = "Stackable Operator for Foobar"
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

Copy link
Member Author

Choose a reason for hiding this comment

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

Switched the remaining names to "Foobar Operator".

@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

### Changed
- BREAKING: clap 2.33.3 -> 3.0.4 ([#289]).
Copy link
Contributor

Choose a reason for hiding this comment

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

Are there any breaking changes in how the operator is used now?

Copy link
Member Author

Choose a reason for hiding this comment

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

Users need to replace their clap 2 and structopt dependencies with clap 3, and replace references to structopt::StructOpt with clap::Parser.

@fhennig fhennig removed their assignment Jan 11, 2022
@nightkr nightkr requested a review from fhennig January 13, 2022 09:03
@nightkr nightkr mentioned this pull request Jan 13, 2022
4 tasks
@nightkr
Copy link
Member Author

nightkr commented Jan 13, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Jan 13, 2022

@bors bors bot merged commit 110261c into main Jan 13, 2022
@bors bors bot deleted the feature/clap-3 branch January 13, 2022 22:33
bors bot added a commit that referenced this pull request Jan 17, 2022
291: Allow overriding CLI run arg type r=teozkr a=teozkr

## Description
This is useful for secret-operator, which doesn't have a product-config but does care about other options, such as the CSI plugin socket path.

This depends on and builds upon #289.

## Review Checklist
- [ ] Code contains useful comments
- [ ] (Integration-)Test cases added (or not applicable)
- [ ] Documentation added (or not applicable)
- [ ] Changelog updated (or not applicable)


Co-authored-by: Teo Klestrup Röijezon <teo.roijezon@stackable.de>
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.

3 participants