peridot
peridot copied to clipboard
Module metadata displays versions as strings, not integers
Describe The Bug
Module metadata produced erroneously produces a version as a string, not an integer which will cause issues with content management systems.
Reproduction Steps
- Sync content in pulp
Expected Behavior
Version should not be quoted as a string.
Version and Build Information
Current.
Additional context
https://bugs.rockylinux.org/view.php?id=2575
Likely erroneous line: https://github.com/rocky-linux/peridot/blob/6e752a37049b9684e1fb314778452a3ad3876e82/modulemd/modulemd.go#L130
YAML spec for modulemd states it as a 64-bit unsigned integer.
This would involve auto fixing existing metadata during first sync (post type change), but not super difficult I hope