Skip to content

Conversation

@dunkmann00
Copy link
Contributor

When processing bundle tag's, make them VersionInfo objects to better handle sorting. It is necessary to relax the parsing rules to do this. This also removes leading v characters, to support the common version scheme of v1.0.0.

When processing bundle tag's, make them VersionInfo objects to better
handle sorting. It is necessary to relax the parsing rules to do this.
This also removes leading 'v' characters, to support the common version
scheme of 'v1.0.0'.
If a tag cannot be parsed, and is therefore not a valid version tag,
don't try to sort the tags. When adding a new tag that is invalid, add
it as the latest tag. When loading tags from disk, use the list as is.
Since this is used throughout Bundle, pull it out into its own function.
Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

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

This looks good to me, tested successfully. Thank you!

@FoamyGuy FoamyGuy merged commit 0722e8d into adafruit:main Dec 5, 2025
1 check passed
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.

2 participants