addonfactory-ucc-generator icon indicating copy to clipboard operation
addonfactory-ucc-generator copied to clipboard

BUG: Automatic version numbering on release does not conform to semver and fails AppInspect

Open livehybrid opened this issue 5 months ago • 0 comments

Description

When UCC builds an app based on a GitHub release, the version it produces does not meet the requirements for a new AppInspect check "check_version_is_valid_semver" which requires a .. numbering. Instead UCC creates something like 1.0.1Ra1b2c3d4.

 ucc-gen build                                                                                                            
INFO: ucc-gen version 5.49.0 is used
INFO: Python binary name to use: python3
INFO: Python Version: Python 3.9.15
INFO: Output folder is /Users/livehybrid/projects/individual-splunk-apps/splunkbase_apps/TA-nextdns-api/output
INFO: Add-on will be built with version '1.0.0R3ad0537'

This looks to be added by https://github.com/splunk/addonfactory-ucc-generator/blob/main/splunk_add_on_ucc_framework/utils.py#L99 Is it possible to change "R" to "+" as this would then be a valid SemVer version? "Build metadata MAY be denoted by appending a plus sign and a series of dot separated identifiers"

What UCC version are you using?

5.49.0

Additional System Info

Multi Envs

livehybrid avatar Sep 12 '24 20:09 livehybrid