You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2017-09-15 07:35:30,252 WARNING [-] Failed to register sensors: Failed to register pack "lib_test": Pack version "0.1" doesn't follow a valid semver format. Valid versions and formats include: 0.1.0, 0.2.1, 1.1.0, etc.
'0.1' does not match '^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:-[\\da-z\\-]+(?:\\.[\\da-z\\-]+)*)?(?:\\+[\\da-z\\-]+(?:\\.[\\da-z\\-]+)*)?$'
Failed validating 'pattern' in schema['properties']['version']:
1 ---
{'description': 'Pack version. Must follow the semver format (for instance, "0.1.0").',
'pattern': '^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:-[\\da-z\\-]+(?:\\.[\\da-z\\-]+)*)?(?:\\+[\\da-z\\-]+(?:\\.[\\da-z\\-]+)*)?$',
'required': True,
'type': 'string'}
On instance['version']:
'0.1'
Traceback (most recent call last):
File "./st2common/bin/st2-register-content", line 22, in <module>
sys.exit(content_loader.main(sys.argv[1:]))
File "/mnt/src/storm/st2/st2common/st2common/content/bootstrap.py", line 388, in main
register_content()
File "/mnt/src/storm/st2/st2common/st2common/content/bootstrap.py", line 335, in register_content
register_triggers()
File "/mnt/src/storm/st2/st2common/st2common/content/bootstrap.py", line 145, in register_triggers
raise e
ValueError: Failed to register pack "lib_test": Pack version "0.1" doesn't follow a valid semver format. Valid versions and formats include: 0.1.0, 0.2.1, 1.1.0, etc.
'0.1' does not match '^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:-[\\da-z\\-]+(?:\\.[\\da-z\\-]+)*)?(?:\\+[\\da-z\\-]+(?:\\.[\\da-z\\-]+)*)?$'
st2sdk bootstrap ${pack_name} creates version as "0.1". This breaks pack registration.
Also, description is left to "" which also breaks pack registration.
The text was updated successfully, but these errors were encountered: