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
In cargo_provider.py on line 86, there is version_workspace = package_content["version"]["workspace"].
This causes commitizen to crash (traceback) under the following conditions:
you have a cargo workspace
you have a crate that is a worskpace member
this crate has (in [package] key) a version = 0.1.0
The error is: TypeError: string indices must be integers, not 'str'
This could be fixed by checking that workspace key exists (and check that it is True, which is already done)
Steps to reproduce
you have a cargo workspace
you have a crate that is a worskpace member
this crate has (in [package] key) a version = 0.1.0
Current behavior
TypeError: string indices must be integers, not 'str'
Activity
fix(providers/cargo): don't crash on workspace member with fixed version
fix(providers/cargo): don't crash on workspace member with fixed version