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

fix clippy warnings for tools and run lints for pull requests #2337

Merged
merged 5 commits into from
Aug 12, 2022

Conversation

bcressey
Copy link
Contributor

Issue number:

#1776 (partial fix)

Description of changes:
Fix or silence all clippy warnings for tools, and add a step to the pull request workflow so they stay fixed.

Testing done:
Verified that builds completed via buildsys.

Ran the following pubsys related tasks:

  • ami
  • repo
  • validate-repo
  • check-repo-expirations
  • refresh-repo
  • ssm
  • promote-ssm
  • upload-ova
  • vmware-template

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

@bcressey bcressey changed the title fix clippy warnings and run lints for pull requests fix clippy warnings for tools and run lints for pull requests Aug 12, 2022
@bcressey
Copy link
Contributor Author

Let me run rustup and fix some more lints. 😆

Comment on lines +374 to +376
# For rust first-party source code
if ! cargo clippy \
--manifest-path ${BUILDSYS_TOOLS_DIR}/Cargo.toml \
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess the comment isn't exactly accurate yet. Are we planning to do this to first-party code in /sources as a follow up?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I'd like first-party code to be covered as well, but it's more than I had the time to tackle today. I was working on an unrelated update to buildsys and got annoyed by the existing clippy warnings. 😀

Signed-off-by: Ben Cressey <bcressey@amazon.com>
Signed-off-by: Ben Cressey <bcressey@amazon.com>
Signed-off-by: Ben Cressey <bcressey@amazon.com>
Signed-off-by: Ben Cressey <bcressey@amazon.com>
Signed-off-by: Ben Cressey <bcressey@amazon.com>
Copy link
Contributor

@zmrow zmrow left a comment

Choose a reason for hiding this comment

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

🦺

Copy link
Contributor

@cbgbt cbgbt left a comment

Choose a reason for hiding this comment

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

🚀

@etungsten etungsten merged commit f5a4ce8 into bottlerocket-os:develop Aug 12, 2022
@bcressey bcressey deleted the clippy-for-tools branch December 13, 2022 18:12
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.

4 participants