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 warnings for use of deprecated items in common_migrations #1022

Merged
merged 1 commit into from
Aug 10, 2020

Conversation

tjkirch
Copy link
Contributor

@tjkirch tjkirch commented Aug 10, 2020

The singular AddSettingMigration and RemoveSettingMigration exist for
backward compatibility and are marked deprecated. The trait implementations on
those items have to reference the deprecated items, of course, but this
triggers compiler warnings about use of the deprecated items. We only want
warnings when people are actively using these types outside of the module that
defines them; we don't want to see the warnings on every build.

Testing done:

Build no longer shows the warnings.

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.

The singular `AddSettingMigration` and `RemoveSettingMigration` exist for
backward compatibility and are marked deprecated.  The trait implementations on
those items have to reference the deprecated items, of course, but this
triggers compiler warnings about use of the deprecated items.  We only want
warnings when people are actively using these types outside of the module that
defines them; we don't want to see the warnings on every build.
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.

🧑‍🔧

@tjkirch tjkirch merged commit b8ae2b0 into bottlerocket-os:develop Aug 10, 2020
@tjkirch tjkirch deleted the deprecated-migrations branch August 10, 2020 17: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.

3 participants