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

update clap and fix 1.69 clippy lints #18992

Merged
merged 1 commit into from May 2, 2023

Conversation

guswynn
Copy link
Contributor

@guswynn guswynn commented Apr 26, 2023

Clap v3 is going to be quite annoying going forward. It produces clippy lints that must be allowed at a module-level, which means introducing a new module. This can be cleaned up when: clap-rs/clap#4857 (comment) is resolved!

Other lints in 1.69 that came up weren't bad!

Motivation

  • This PR refactors existing code.

Checklist

  • This PR has adequate test coverage / QA involvement has been duly considered.
  • This PR has an associated up-to-date design doc, is a design doc (template), or is sufficiently small to not require a design.
  • This PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way) and therefore is tagged with a T-proto label.
  • If this PR will require changes to cloud orchestration, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label (example).
  • This PR includes the following user-facing behavior changes:

@guswynn guswynn requested review from benesch and a team as code owners April 26, 2023 23:42
@guswynn guswynn requested review from a team and umanwizard April 26, 2023 23:42
@philip-stoev philip-stoev removed the request for review from a team April 27, 2023 06:15
@guswynn
Copy link
Contributor Author

guswynn commented Apr 27, 2023

This ended up causing a bunch of duplicate deps that I had to allow, so it will need another look!

Comment on lines +22 to +35
{ name = "windows-sys", version = "0.45.0" },
{ name = "windows-targets", version = "0.42.0" },
{ name = "windows_aarch64_gnullvm", version = "0.42.0" },
{ name = "windows_aarch64_msvc", version = "0.42.0" },
{ name = "windows_i686_gnu", version = "0.42.0" },
{ name = "windows_i686_msvc", version = "0.42.0" },
{ name = "windows_x86_64_gnullvm", version = "0.42.0" },
{ name = "windows_x86_64_gnu", version = "0.42.0" },
{ name = "windows_x86_64_msvc", version = "0.42.0" },
# Newer versions of crates like `tempfile` are held back by crates like `atty`.
# This is very Unfortunate as we don't actually use these platforms.
{ name = "hermit-abi", version = "0.1.6" },
{ name = "hermit-abi", version = "0.2.6" },
{ name = "redox_syscall", version = "0.2.10" },
Copy link
Member

Choose a reason for hiding this comment

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

Oooof. I'm okay with this if you are willing to be on the hook for wrangling all these duplicate deps over time. (Periodically chasing new versions and sending dependency bump PRs around.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I can do that!

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm also happy to help as I find myself wrangling many of these duplicates in the cloud repo too :-(

@guswynn guswynn merged commit 3c4185d into MaterializeInc:main May 2, 2023
56 checks passed
@guswynn guswynn deleted the clap-and-1.69 branch May 2, 2023 20:45
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

4 participants