-
Notifications
You must be signed in to change notification settings - Fork 23
fix: cannot use community-general version 12 - no py27 and py36 support #254
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
Conversation
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 enforces a version constraint on the community.general collection (>=6.6.0,<12.0.0) with a user-override variable, and unifies the structure of all collection-requirements.yml files by replacing the SPDX header with a managed-by notice and adopting a consistent ‘name:’ item syntax in both meta and test definitions. ER diagram for collection requirements version constraintserDiagram
COLLECTION_REQUIREMENT_FILE {
managed_by_notice string
}
COLLECTION {
name string
version_constraint string
}
COLLECTION_REQUIREMENT_FILE ||--o{ COLLECTION : contains
Class diagram for standardized collection requirements structureclassDiagram
class CollectionRequirementFile {
- managed_by_notice: string
- collections: Collection[]
}
class Collection {
- name: string
- version: string (optional)
}
CollectionRequirementFile "1" *-- "many" Collection: contains
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.
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
Enforce compatible community.general versions by pinning to <12 (with >=6.6.0) by default and allow per-role overrides, and standardize collection requirements file format across roles with a managed-by header and explicit name fields
Bug Fixes:
Enhancements: