-
Notifications
You must be signed in to change notification settings - Fork 23
fix: cannot use community-general version 12 - no py27 and py36 support #300
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
+1
−0
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
community.general version 12 has dropped support for py27 and py36 - ensure that the roles do not install/use this version - see ansible-collections/community.general#582 By default, installation will get the latest 11.x version. The lower bound `6.6.0` is an older version, but I don't want to restrict the ability of a user of a particular role to use an old version, rather than forcing them to use `11.x` or later. Some roles like `rhc` explicitly require `6.6.0` or later - I think this is a reasonable lower bound for all roles.If a role needs a different version, the role can define its own `community_general_version` in the role's `host_vars` file in .github. Standardize file format across all roles for consistency and ease of updating This update may remove the SPDX license information from the file - this is ok - the role/project already has a license, this file is trivial, and many requirements files do not have the license header anyway. Signed-off-by: Rich Megginson <rmeggins@redhat.com>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR pins community.general to versions <12 and ≥6.6.0 to maintain py27/py36 compatibility and standardizes requirements file formatting across roles. Entity relationship diagram for updated collection requirementserDiagram
COLLECTION_REQUIREMENTS {
string name
string version
}
COLLECTION_REQUIREMENTS ||--o| COLLECTION : contains
COLLECTION {
string name
string version
}
COLLECTION_REQUIREMENTS ||--o| COLLECTION : contains "community.general" with version ">=6.6.0,<12.0.0"
COLLECTION_REQUIREMENTS ||--o| COLLECTION : contains "ansible.posix"
Flow diagram for standardized requirements file managementflowchart TD
A["linux-system-roles/.github"] --> B["Update meta/collection-requirements.yml"]
B --> C["Standardized format across all roles"]
C --> D["Pin community.general version >=6.6.0,<12.0.0"]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
community.general version 12 has dropped support for py27 and py36 - ensure that
the roles do not install/use this version - see
ansible-collections/community.general#582
By default, installation will get the latest 11.x version. The lower bound
6.6.0is an older version, but I don't want to restrict the ability of a userof a particular role to use an old version, rather than forcing them to use
11.xor later. Some roles likerhcexplicitly require6.6.0or later - Ithink this is a reasonable lower bound for all roles.If a role needs a different
version, the role can define its own
community_general_versionin the role'shost_varsfile in .github.Standardize file format across all roles for consistency and ease of updating
This update may remove the SPDX license information from the file - this is ok -
the role/project already has a license, this file is trivial, and many
requirements files do not have the license header anyway.
Signed-off-by: Rich Megginson rmeggins@redhat.com
Summary by Sourcery
Constrain community.general to supported versions and harmonize requirement files across roles
Bug Fixes:
Enhancements: